Power Automate: how to add users to Sharepoint Site
Very quick and short way to add users to the Sharepoint site with Power automate.
Step 1: Find Sharepoint Site ID
A. Go to the Site permissions
B. Advanced Setting:
C. Select the group you want to add users to ( in my case, it was members):
D. You will see the group ID at the top:
E. Remember that number ( in my case it is 5)
Step 2. Build a flow
Method: POST
Uri: _api/web/sitegroups(SharepointSiteID goes here)/users
Headers:
accept - > application/json;odata=verbose
content-type -> application/json;odata=verbose
Body: {"__metadata":{"type":"SP.User"},"LoginName":"i:0#.f|membership|user email goes here"}
Office 365 | SharePoint | SPFx | Power Platform | C# | Azure | SharePoint/Teams Manager for Ribbon Communications
1 周I just used this. Nice.
RPA Developer at Compunnel
1 周Thank You Larisa Steigenberger, it helped me a lot
Power Platform Consultant
3 周Thank you for your post Larisa! Just to confirm to everyone, the users added to the groups do not receive any notification. ??