3

I am trying to get SharePoint User group permissions (Ex: Read, Contribute) based on the group name using SharePoint Rest API. My goal is to get the permission level of the group and disable features on our custom app based on the permission levels. I have tried the below url to get the group properties but couldn't get the permission level of the group. Could anyone please guide me on how to get the User group permissions.

Options Tried:

URL = http://Servename/Site/api/web/SiteGroups/getByName('group name')

1

1 Answer 1

0

The below endpoint will return all the groups along with the roles assigned.

<site>/_api/Web/RoleAssignments?$expand=Member,RoleDefinitionBindings

Reference: https://sshareasolutions.com/2017/09/27/display-permissions-for-any-site-or-list-using-rest-api/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.