Office365UsersClient.ManagerAsync(String, String, CancellationToken) 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 manager (V2)
public virtual System.Threading.Tasks.Task<Azure.Connectors.Sdk.Office365Users.Models.GraphUser> ManagerAsync(string userUPN, string selectFields = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ManagerAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.Office365Users.Models.GraphUser>
override this.ManagerAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.Office365Users.Models.GraphUser>
Public Overridable Function ManagerAsync (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 manager (V2) response.
Remarks
Retrieves the profile of the specified user's manager. Learn more about available fields to select: https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/user#properties