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

PriyaSivaji
Regular Visitor

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,036)