cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ALBordelon
Advocate II
Advocate II

Add AD Group into SharePoint Group

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

5 REPLIES 5
ALBordelon
Advocate II
Advocate II

To clarify, the AD groups are AD Security Groups

sudharsan1985
Solution Sage
Solution Sage

Hi @ALBordelon 

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

Hope it helps, please like it or mark it as a solution if it resolves your clarification or issue
-Sudharsan K...

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

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

Anonymous
Not applicable

Hi This one looks promising,

 

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

What have you assigned in varGroup ??

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (1,706)