다음을 통해 공유


SP.RoleAssignmentCollection.getByPrincipal(principalToFind) Method

Applies to: SharePoint Foundation 2010

In this article
Return Value
Remarks
Applies To

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

var value = SP.RoleAssignmentCollection.getByPrincipal(principalToFind);

Parameters

principalToFind

A user or group to query the role assignment.

Type: SP.Principal Class

Return Value

Type: SP.RoleAssignment Class

The role assignment associated with the user or group.

Remarks

This method gets the role assignment associated with the specified user or group from the collection.

Applies To

SP.RoleAssignmentCollection Class

See Also

Reference

SP.RoleAssignmentCollection Methods

SP.RoleAssignmentCollection Properties

SP Namespace