Power Automate: how to add users to Sharepoint Site

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

No alt text provided for this image

B. Advanced Setting:

No alt text provided for this image

C. Select the group you want to add users to ( in my case, it was members):

No alt text provided for this image

D. You will see the group ID at the top:

No alt text provided for this image

E. Remember that number ( in my case it is 5)

Step 2. Build a flow

No alt text provided for this image

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"}

Andrew Gaskell, PhD

Office 365 | SharePoint | SPFx | Power Platform | C# | Azure | SharePoint/Teams Manager for Ribbon Communications

1 周

I just used this. Nice.

Kiran Govvala

RPA Developer at Compunnel

1 周

Thank You Larisa Steigenberger, it helped me a lot

Enrique Guajardo López

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. ??

要查看或添加评论,请登录

Larisa Steigenberger的更多文章

社区洞察

其他会员也浏览了