Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Add AD Group into SharePoint Group

(0) ShareShare
ReportReport
Posted on by 114

I can successfully add individual users.  How do I modify the HTTP Request below to add and an Azure AD Group?

 

HTTP Request to add Individual UserHTTP Request to add Individual User

  • petrinnn Profile Picture
    18 on at
    Re: Add AD Group into SharePoint Group

    You are using the sintaxe to add only users.

     

    To add groups, change for this, after LoginName

     

    Grupo M365
    "c:0o.c|federateddirectoryclaimprovider|nomegrupo@ayoshii.com.br"

     

    Grupo Segurança
    "c:0t.c|tenant|<groupid>"

     

    Like this...

    'LoginName':"c:0t.c|tenant|b653754-dcc7-4641-b7b0-2221425a1d98"

  • Community Power Platform Member Profile Picture
    on at
    Re: Add AD Group into SharePoint Group

    Hi This one looks promising,

     

    Could you please provide the screen capture of your complete flow please?

    What have you assigned in varGroup ??

  • ALBordelon Profile Picture
    114 on at
    Re: Add AD Group into SharePoint Group

    I figured it out, I was having issues finding the LoginName for each group but I was able to locate using a Sent HTTP Request

     

    Step 1: Add all AD Groups into a single SharePoint Group

    Step 2: Use HTTP Request to get a listing of all users in the SharePoint Group

    • Uri: _api/web/sitegroups/getbyname('SPGroupName')/users

     

    Flow Help1.png

    • From the Results, I was able to get the LoginName for each Group
      • My AD Group is cAPTure-Proposal_Project Controls

    flow help2.png

     

    Step 3: Use the LoginName to add the AD Group into the SharePoint Group using the HTTP Request 

     

    flow help 3.png

     

    If there is a simpler way to get the LoginName, please let me know

  • ALBordelon Profile Picture
    114 on at
    Re: Add AD Group into SharePoint Group

    I have not tried the UPN of the AD Group.  How would I find the UPN?

  • sudharsan1985 Profile Picture
    1,325 on at
    Re: Add AD Group into SharePoint Group

    Hi @ALBordelon 

    Have you tried adding the UPN of the Azure AD Group using the same API?

  • ALBordelon Profile Picture
    114 on at
    Re: Add AD Group into SharePoint Group

    To clarify, the AD groups are AD Security Groups

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1