Hi Huys,
I'm currently building two flows linked to a PowerApp that manages Sharepoint Groups memberships on a single site collection.
So i've got one flow to add users to sharepoint groups, it works fine.
I also have one other flow that deletes users from SharePoint and it's driving me crazy.
I made a copy paste of the action to add user to the group and modified the URI section to add "RemoveByLoginName"

And it's not working, i have this error :
The parameter 'LoginName' in the request payload is not a valid parameter for the function import 'RemoveByLoginName'
So i tried to put the "Body" (Corps) section directly in the URI section
_api/web/sitegroups('355')/users/RemoveByLoginName("i:0#.f|membership|y.******@******.com")
Not working either and it's giving me this error
"The expression \"web/sitegroups('355')/users/RemoveByLoginName(\"i:0\" is not valid.
So i made another shot and tried to just put the UPN like that
_api/web/sitegroups('355')/users/RemoveByLoginName('y.******@******.com')
And nope, doesn't work, i have this error
The user does not exist or is not unique.
Anyone has a clue about what's wrong ?
Thanks,
Regards,