Kurkula
Kurkula

Reputation: 6762

Get user details with ClaimsPrincipal.Current

I am using azure active directory authentication to pull user information.

I am able to get user details using ClaimsPrincipal.Current. Is there any option to get Reporting Manage alias or name with this?

string userObjectID =
                ClaimsPrincipal.Current.FindFirst("http://schemas.microsoft.com/identity/claims/objectidentifier").Value;

Upvotes: 1

Views: 3733

Answers (1)

Chris Gillum
Chris Gillum

Reputation: 15042

You will need to make API calls to the Azure AD Graph API to get manager information. More information on the AAD Graph APIs for working with users can be found here: https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/users-operations

Upvotes: 3

Related Questions