0

I am currently have a custom permission level called 'Special Permission'.

In my webpart, I want to detect if the current user is part of any SharePoint group that has 'Special Permission', and achieve this via REST API OData query.

Is there anyway to do this? I do not see any such values listed via /_api/Web/CurrentUser

Thanks in advanced!

3
  • Are you trying to check if user is member of a group (where you know the name of group) or you only know the name of custom permission level? Nov 8, 2023 at 12:02
  • @GaneshSanap-MVP Only the name of custom permission level. Thanks Nov 8, 2023 at 12:11
  • I think it is not possible using single API call. First you will have to fetch the group names with permission level using API call: _api/Web/RoleAssignments?$expand=Member,RoleDefinitionBindings then you can check if user belongs to any of those groups by following: sharepoint.stackexchange.com/questions/309931/…. Let me know if this works for you. Nov 8, 2023 at 12:24

0

Your Answer

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