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 User
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"
Hi This one looks promising,
Could you please provide the screen capture of your complete flow please?
What have you assigned in varGroup ??
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
Step 3: Use the LoginName to add the AD Group into the SharePoint Group using the HTTP Request
If there is a simpler way to get the LoginName, please let me know
I have not tried the UPN of the AD Group. How would I find the UPN?
Hi @ALBordelon
Have you tried adding the UPN of the Azure AD Group using the same API?
To clarify, the AD groups are AD Security Groups
Michael E. Gernaey
497
Super User 2025 Season 1
David_MA
436
Super User 2025 Season 1
Riyaz_riz11
244
Super User 2025 Season 1