Replies: 1 comment 4 replies
-
@EmkioA : probably the fastest solution is to lookup the SharePoint groups upfront and then check whether the principal id matches with one of the group id's. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, i have a small code enumerating roleassignements, and i want to know for who the roledefinitions are assigned to... Into the iRoleAssignments we have access to the PrincipaleId but how can i know if this id is a user or a group?
Example : i receive a PrincipaleId = 3 and if i lookinto the web.GetUserById(3) i receive an error (not found). and if i look on the site and i click on the groupe name, i am redirect to /_layouts/15/people.aspx?MembershipGroupId=3
How can i distinct Users from Groups into the IRoleAssigments?
Beta Was this translation helpful? Give feedback.
All reactions