Tag Info

New answers tagged


This happens because web has not been loaded. Load the web i.e. context.Load(currentweb);. Finally Load the RoleAssignmentCollection and then execute query before looping through them. Example: RoleAssignmentCollection roleAssignment = currentweb.RoleAssignments; context.Load(roleAssignment); context.ExecuteQuery(); for (int i = roleAssignment.Count - 1; i ...


You could consider the following solution to get permission levels/roles: get the effective permissions that the specified user using /_api/web/getusereffectivepermissions endpoint determine user roles using SP.BasePermissions.has(perm) Method JavaScript example function getUserEffectivePermissions(webUrl,accountName) { var endpointUrl = webUrl + ...

Top 50 recent answers are included