web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Add specific group to ...
Power Automate
Unanswered

Add specific group to a SharePoint Site Permission Group

(0) ShareShare
ReportReport
Posted on by 603

Hi all,

 

I'm try to add a default group to the SharePoint site visitors with Power Automate.

I'm trying it to do it with the follow HTTP request to SharePoint, but it's not working and I didn't know why/what's the issue is:

dennisb88_1-1631882997621.png

 

 

I found this thread: Solved: Add specific o365 group to a SharePoint Site Permi... - Power Platform Community (microsoft.com)

But where @mousman85  is using: 

 

'LoginName': 'c:0t.c|tenant|<Group OBJECT ID>'}

 

I don't know what "c:0t.c|tenant|" means, but it's not working for me. 

I'm trying to put only my group Object ID, but it is not working.

 

I receive the error: 

 

"User doesn't exists or not unique"

 

If I test with the follow setting to add a single user it's worksfine:

{ 
 "__metadata": { 
 "type":"SP.User" 
 }, 
"LoginName":"i:0#.f|membership|emailadres@ofasingleuser.com" 
} 

But it is not working with a group mail adres or groupobjectID.

 

Anyone know how to fix this?

Categories:
I have the same question (0)
  • Verified answer
    rrovira Profile Picture
    Microsoft Employee on at

    Hello, @dennisb88!

     

    Perhaps the error you are getting is because c:0t.c works with security groups. I'll share a link to a post talking about it. It might help you! adding office365 group to Sharepoint site collection administrators thorugh Powershell - Stack Overflow

     

    Let me know! In the mean time I'll be looking for more information. 

     

    Cheers!

  • Verified answer
    dennisb88 Profile Picture
    603 on at

    Hi @rrovira ,

     

    Thank you for that link! There I found the solution for my situation. Because I'm trying to add an Office 365 (mail enabled) group, I need to paste this after the loginName:

    c:0o.c|federateddirectoryclaimprovider|

    dennisb88_0-1631986400217.png

     

    Thanks again!

  • vedd Profile Picture
    2 on at

    I apologize for the n00b nature of this question - I'm attempting to do the same thing, but I don't know how to obtain the ObjectID for the security group I'm trying to alter. Can I do this via a query within Power Automate, or would I have to have access to Azure AD (which I don't)? Please help!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard