Add a user to SharePoint Online Group from Power Automate

3 months ago

By Eric Gregorich

Add a user to a SharePoint Online Group from Power Automate using the "Send an HTTP request to SharePoint" action.

Property Value
Site Address Set the Site Address to the site collection
Uri /_api/web/sitegroups/GetByName('@{triggerBody()?['Title']} Owners')/users where "['Title']" is the name of the site
Header accept: application/json;odata.metadata=none
Header content-type: application/json;odata=verbose
Body {"__metadata":{"type":"SP.User"},"LoginName":"@{triggerBody()?['Owners']?['Claims']}"}
Add User to SharePoint Online Group from Power Automate

Spread the word

Keep reading