Edit

Share via


GraphExtensions.GetUserAsync(GraphServiceClient, String) Method

Definition

Retrieve a user by id.

public static System.Threading.Tasks.Task<Microsoft.Graph.User> GetUserAsync(this Microsoft.Graph.GraphServiceClient graph, string userId);
static member GetUserAsync : Microsoft.Graph.GraphServiceClient * string -> System.Threading.Tasks.Task<Microsoft.Graph.User>
<Extension()>
Public Function GetUserAsync (graph As GraphServiceClient, userId As String) As Task(Of User)

Parameters

graph
Microsoft.Graph.GraphServiceClient

Instance of the Microsoft.Graph.GraphServiceClient.

userId
String

The is of the user to retrieve.

Returns

Task<Microsoft.Graph.User>

A Task representing the asynchronous operation.

Applies to