Remove User from SharePoint Group by LoginName
How to remove a user (by LoginName) from a single SharePoint Group in a SharePoint Online site collection using a Power Automate flow.
URI
Headers
Body
Not applicable
Screenshot with example
Sample data
SharePoint Group Name – Custom SharePoint Group
LoginName – i:0#.f|membership|jane@contoso.onmicrosoft.com (which is encoded by the encodeURIComponent function
Expected response
Copy/paste example
Resources
encodeURIComponent function
SP.GroupCollection.getByName Method
SP.UserCollection.removeByLoginName Method
That’s it, Happy testing!