SP.RoleAssignmentCollection.getByPrincipalId(principalId) Method
Applies to: SharePoint Foundation 2010
In this article
Return Value
Remarks
Applies To
Gets the role assignment associated with the specified principal ID from the collection.
var value = SP.RoleAssignmentCollection.getByPrincipalId(principalId);
Parameters
principalId
Type: Int32
The principal ID.
Return Value
Type: SP.RoleAssignment
The role assignment associated with the principal.
Remarks
This method gets the role assignment with the principal ID specified by the principalId parameter from the collection.
Applies To
SP.RoleAssignmentCollection Class
Exceptions
- ArgumentException
The user or group does not exist in the collection at the given scope. Error code: -2147024809.
- UnauthorizedAccessException
The current user does not have sufficient permissions to enumerate permissions on the parent securable object. Error code: -2147024891.
See Also
Reference
SP.RoleAssignmentCollection Methods