How to Add a User to Default SharePoint Groups via Power Automate

From time to time, a site admin will need to add one or more users to a default SharePoint group.   

This process can be automated through a Power Automate flow as shown below.  

In this post we look at adding users to any of the default SharePoint Groups.  SharePoint has three default groups – Members Group, Owners Group and Visitor Group.

 

Solution

We will start with the Manual Trigger Action to initiate the flow.

Next we use the Send HTTP request to SharePoint Action to add user to Group.

The details are as follows:
 
Site Address: Site where the user is to be added
Method: POST
Uri: _api/web/sitegroups(ID)/users
ID refers to the SharePoint Group’s ID.  
Members Group ID is usually 5,  Owners Group is 3 and Visitors Group is 4: (this may change so it is better to have a step that gets the exact Group ID.  See Post on how to get Group ID