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 / Check the groups permi...
Power Automate
Answered

Check the groups permission in SharePoint Online site using powerautomate

(1) ShareShare
ReportReport
Posted on by 172
Get the site groups for the current site. it works fine and get all the groups.
passing the id received from the results above which is MembershipGroupId=562
 
 
but this gives me error 
 
here is the Group ID that is passed to retrieve the permission for the group.
/_api/Web/RoleAssignments/GetByPrincipalId(21)/RoleDefinitionBindings
 
Is group member id is the principal ID or we need some other method to find it. 
 
Categories:
I have the same question (0)
  • Verified answer
    vipuljain03 Profile Picture
    657 Super User 2025 Season 2 on at
    I tested in my environment and was able to get RoleDefinitionBindings using below logic:
     
    > get site groups => you are already doing this
    > Pass the ID of the site group from above step to the next step
    > next step, again use Send HTTP request to SharePoint action and use the below REST API URL:
    _api/web/RoleAssignments/GetByPrincipalId(5)?$expand=RoleDefinitionBindings
    5 is SharePoint GroupID in my case => you can use your owm group id
    > Use the "Parse JSON" action to extract RoleDefinitionBindings.
     
    ----------------------------------------------------------------------------
    Please mark this solution as Accepted/Verified if it resolves your issue.
    Thanks!
  • KDAI Profile Picture
    172 on at
    It looks like there are groups that are created at subsite level, but they seem not to have any permission on the root site level. 
     
    not sure how is that possible.
     
    so when it looks for permission for those groups they don't exist in the root site level but when you query using site groups they all appear. 
     
    is there a way to get groups that have permission to the site excluding groups that doesn't have any permission?

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard