3.2.5.136.2.1.4 ResolvePrincipal
This method is a static CSOM method.
Return Type: Microsoft.SharePoint.Client.Utilities.PrincipalInfo
Returns information about a principal that matches the specified search criteria. If no matches are found, the protocol server MUST return NULL.
Parameters:
web: Specifies the site (2) to be used when searching for a principal.
Type: Microsoft.SharePoint.Client.Web
input: Specifies the value to be used when searching for a principal.
Type: CSOM String
If this is not the display name, e-mail address, or login name of a principal, the server MUST return NULL.
Its length MUST be equal to or less than 255.
scopes: Specifies the type to be used when searching for a principal.
Type: Microsoft.SharePoint.Client.Utilities.PrincipalType
sources: Specifies the source to be used when searching for a principal.
Type: Microsoft.SharePoint.Client.Utilities.PrincipalSource
usersContainer: Specifies the collection of users to be used when searching for a principal.
Type: Microsoft.SharePoint.Client.UserCollection
inputIsEmailOnly: Specifies whether only the e-mail address is used when searching for a principal.
Type: CSOM Boolean
Exceptions:
Error Code |
Error Type Name |
Condition |
---|---|---|
-2147024891 |
System.UnauthorizedAccessException |
The current user has insufficient permissions. |