SP.RoleAssignmentCollection.getByPrincipal Method (sp.js)

Gets the role assignment associated with the specified user or group from the collection.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

SP.RoleAssignmentCollection.getByPrincipal()

Parameters

  • principalToFind
    Type: SP.Principal

    A user or group to query the role assignment.

Return value

Type: SP.RoleAssignment

The role assignment associated with the user or group.