Let's POWER Automate

From no-code to low-code

Menu
  • Expressions
  • Filters
  • General
  • Application specific solutions
    • Dataverse
    • Excel
    • Forms
    • Outlook
    • Planner
    • Power Apps
    • SharePoint
    • Teams
  • Triggers
  • Ready to use solutions
    • Approval Process Template
    • Task Delegation App
    • The Ultimate Power Automate expressions cheat sheet
    • Power Automate HTTP requests to SharePoint cheat sheet
    • Power Automate HTTP requests to Graph API cheat sheet
  • ABOUT ME
  • Get help with your flow
  • POWER PLATFORM SERVICES
Menu

How to add user to a SharePoint group with a Power Automate flow

Posted on August 10, 2022August 10, 2022 by Tom

“Can I use Power Automate flow to add user to a SharePoint group? All the actions I see are related only to M365 groups…”


The new way to manage permissions in SharePoint is to use Microsoft 365 groups, which is why Power Automate has dedicated actions for that. But not every organisation transferred to M365 groups. Many SharePoint sites still use SharePoint groups for permissions management, and you might need to stick to that approach for some time. Yet Power Automate doesn’t give you any action to add permissions to a group, or to add new members to such group.

Adding permissions already has a dedicated blog post, this one will show you how to add members to such group.

Add the members with an HTTP request

Since there’s no dedicated action, you must use an HTTP request. You’ll need two inputs – group id and the user email:

Method: POST

Uri: 
_api/web/siteGroups/GetById(<groupId>)/users

Headers:
{
  "accept": "application/json;odata=verbose",
  "content-type": "application/json;odata=verbose"
}

Body:
{
    "__metadata": {
        "type": "SP.User"
    },
    "LoginName": "i:0#.f|membership|<userEmail>"
}

Note: <…> are placeholders, replace them including the < and >.

Power Automate SharePoint group add user

Summary

It is possible to add user to a SharePoint group in Power Automate flow, but you’ll need another HTTP request. Get the group id, the user claims login, and add him with the ‘Send an HTTP request to SharePoint’ action.


πŸš€ Master Power Automate

Join 2,000+ professionals getting actionable Power Automate tutorials, solutions, cheat sheets & tips every week.

No spam. Unsubscribe anytime.

14 thoughts on “How to add user to a SharePoint group with a Power Automate flow”

  1. Dmitry Yekelchik says:
    October 24, 2022 at 11:07 pm

    Tom ,
    Thanks a lot for this article. All works perfect.

    Have question:
    Can I use Power Automate flow from one SharePoint to add user to a SharePoint group in another SharePoint

    Reply
    1. Tom says:
      October 31, 2022 at 6:46 pm

      Hello Dmitry,
      yes, you can, you just have to enter URL of the other SP site in the HTTP request.

      Reply
  2. Matheus Soares says:
    December 16, 2022 at 8:11 pm

    Hi Tom! I have a question:

    Is it possible to turn someone who is a member into an owner or an owner into a member using this HTTP request?

    Reply
    1. Tom says:
      January 9, 2023 at 3:40 pm

      Hello Matheus,
      quick search via google gave me this http request: /_api/web/sitegroups/getByName(‘GroupName’)/SetUserAsOwner() that might work to add owner to a group. I didn’t find any request to remove a user, but maybe it’ll remove the owner if you use DELETE request instead of POST.

      Reply
  3. dorothy says:
    December 28, 2022 at 5:03 pm

    Hi. I am very new to power apps and trying your solution. any idea what this means?
    The property ‘__metadata’ does not exist on type ‘SP.User’. Make sure to only use property names that are defined by the type.

    Reply
    1. Tom says:
      January 9, 2023 at 4:08 pm

      Hello Dorothy,
      I’d check the quotes, if they’re done using the right character and not some local version of quotes. And then the format of the request, if it’s really 1:1 with the example.

      Reply
  4. Oodit says:
    December 31, 2022 at 12:04 pm

    Hi Tom,

    I need a quick help / guidance/ suggestion for a scenario:

    I need to add users which are present in people picker column (multi select), and there are 2-3 columns, so I need to get all those users and add them a SharePoint group, all these using power automate flow. I found your this article helpful, but it is for single user and hard coded value. Hope you got my question, I will wait for your response. Thanks in advance ! πŸ™‚

    Reply
    1. Tom says:
      January 9, 2023 at 4:18 pm

      Hello Oodit,
      the simplest approach would be to repeat the http request for each column. Loop through the users in the 1st column and for each user send an http request using his email address. Then 2nd loop with http request to add users from the 2nd column and the same for the 3rd column.
      If you add the ‘Send an HTTP request to SharPoint’ action and use the user ‘Email’ dynamic content Power Automate should add automatically the necessary loops.

      Reply
  5. Emily says:
    February 27, 2023 at 2:16 pm

    Does this method send an email to the user telling them they have been added to the group (I would rather it didn’t)? Thank you for the explainer – very useful!

    Reply
    1. Thiago says:
      March 7, 2023 at 11:53 am

      Hi Emily! No. But you can add an outlook send an email action after the Http one.

      Reply
    2. Tom says:
      March 12, 2023 at 11:20 am

      Hello Emily,
      no, it shouldn’t send any emails, but it’s always better to do one test run with one of your colleagues to make sure.

      Reply
  6. A MA says:
    April 11, 2023 at 10:32 am

    Hi Tom
    Do you know any option, to add Sharepoint User Groups to permissions (RLS, etc.) instead fo individual users in Power Automate? I would like to manage the Members outside of Power Automate and just use the groups…
    Many thanks in adavance, A MA

    Reply
    1. Tom says:
      April 20, 2023 at 10:00 pm

      Hello A MA,
      there’s an article dedicated to adding permissions for SP groups: https://tomriha.com/how-to-add-permissions-to-sharepoint-group-with-power-automate/

      Reply
  7. Radhakrishna R says:
    January 31, 2025 at 6:32 am

    I have excel sheet in that Email id column updated based on that user add to SharePoint group using power automated flows

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

πŸš€ Master Power Automate

Join 2,000+ professionals getting actionable Power Automate tutorials, solutions, cheat sheets & tips every week.

No spam. Unsubscribe anytime.

Still exchanging emails to get things approved?

Use the Approval Process Template and the Task Delegation App to skip the hard part and deploy an automated, fully functional approval solution on a SharePoint list in minutes! And then the next one, and the next one...

Approval Template Preview ✨ Learn more ✨

Turn ideas into flows with ease!

Grab the complete Power Automate Cheat Sheet Bundleβ€”everything you need to master expressions, SharePoint HTTP calls, and Graph API in Power Automate.

Cheat Sheet Bundle Preview ✨ Get the Cheat Sheets

Didn't find what you were looking for?
Need to adjust a solution to fit your needs?
Or would you just like to get an assistance from somebody with thousands of hours of experience with Power Automate?

Power Automate blogs worth visiting

Damien Bird
Dennis (Expiscornovus)
Paul Murana

©2025 Let's POWER Automate | Theme by SuperbThemes