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 create SharePoint groups with Power Automate flow

Posted on July 30, 2023 by Tom

“My solution needs tens of SharePoint groups that I’d rather not create manually, can I use Power Automate flow to do it?”


While you should be using M365 groups instead of SP groups, it’s often hard to get rid of the SharePoint groups completely. There’re still many companies and many solutions that prefer to work with them as they’re easier to manage directly on the SharePoint site… but only if they exist. Before you can use them there’s a not-so-much-fun part – somebody must create the groups. And if there’re more than a few, it can be quite an annoying task.

Is there a way to automate creation of SharePoint groups to make the process smoother? What would it look like?

You’ll need an HTTP request

There’s no dedicated action to create a SharePoint group as Power Automate doesn’t like them, but there’s still the old approach. As many times before, there’s an HTTP request to do that from a flow.

Method: POST

Uri: _api/web/siteGroups

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

Body:
{
    "__metadata": {
        "type": "SP.Group"
    },
    "Title": "<groupName>",
    "Description": "<groupDescription>"
}

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

Power Automate create SharePoint groups

Once the group is created you can extract its id with an expression…

body('Send_an_HTTP_request_to_SharePoint')?['d']?['Id']

…and use it to assign the group a specific permissions on the site, list/library or item, or add members to the group.

Summary

As many times before, if you know the right HTTP requests, you can automate so much more with Power Automate, even create SharePoint groups. You probably won’t need this request very often, but it comes handy if you’ve got multiple environments. Instead of using the SharePoint user interface to create the groups one by one on multiple SP sites you can have a simple flow that’ll configure the site for you. You build the flow once and reuse it anywhere – less work for you, lower risk of making a mistake.


πŸš€ Master Power Automate

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

No spam. Unsubscribe anytime.

4 thoughts on “How to create SharePoint groups with Power Automate flow”

  1. M. Webbe says:
    February 29, 2024 at 2:12 am

    Hi, thank you for the tutorial. Is there a way to add HTML to the group description without it getting encoded when posted?

    Reply
    1. Tom says:
      April 17, 2024 at 10:03 pm

      Hello M. Webbe,
      I never tried that so I can’t tell.

      Reply
  2. Brian says:
    February 26, 2025 at 11:44 pm

    This is awesome! Is there a modification to make multiple SP groups at once, or does one need to use a separate step for each SP group?

    Reply
    1. Tom says:
      March 11, 2025 at 7:04 pm

      Hello Brian,
      since the body contains a single object, not an array, I’d say that you’ll have to create the groups one by one in a loop.

      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.

Working on an Approval process?

Use the Approval Process Template and the Task Delegation App to skip the hard part and deploy a 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