Office365UsersClient.UserProfileAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get user profile (V2)
public virtual System.Threading.Tasks.Task<Azure.Connectors.Sdk.Office365Users.Models.GraphUser> UserProfileAsync(string userUPN, string selectFields = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UserProfileAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.Office365Users.Models.GraphUser>
override this.UserProfileAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.Office365Users.Models.GraphUser>
Public Overridable Function UserProfileAsync (userUPN As String, Optional selectFields As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of GraphUser)
Parameters
- userUPN
- String
User (UPN)
- selectFields
- String
Select fields
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The Get user profile (V2) response.
Remarks
Retrieves the profile of a specific user. Learn more about available fields to select: https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/user#properties