Utility::ResolvePrincipal method
SharePoint Online
Returns information about a principal that matches the specified search criteria. If no matches are found, the server must return NULL.
Namespace: Microsoft.SharePoint.Client.Utilities
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Parameters
- context
- Type: Microsoft.SharePoint.Client.ClientRuntimeContext
- web
- Type: Microsoft.SharePoint.Client.Web
Specifies the site to be used when searching for a principal.
It must not be NULL.
- input
- Type: System.String
Specifies the value to be used when searching for a principal.
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
- Type: Microsoft.SharePoint.Client.Utilities.PrincipalType
Specifies the type to be used when searching for a principal.
- sources
- Type: Microsoft.SharePoint.Client.Utilities.PrincipalSource
Specifies the source to be used when searching for a principal.
- usersContainer
- Type: Microsoft.SharePoint.Client.UserCollection
Specifies the collection of users to be used when searching for a principal.
- inputIsEmailOnly
- Type: System.Boolean
Specifies whether only the e-mail address will be used when searching for a principal.
Return value
Type: Microsoft.SharePoint.Client.ClientResult<PrincipalInfo>Returns a ClientResult<T> instance representing tools for converting date and time formats, for obtaining information from user names, for modifying access to sites, and for various other tasks in managing deployment.
Show: