[Vuejs]-How to get information like firstname from Azure AD and use it in .net core?

0👍

Yes you can achieve it to MS Graph with the help of users endpoint

https://graph.microsoft.com/v1.0/users?$select=displayname,givenName,mail,userPrincipalName

Code Sample:

const client = Client.init(options);

let res = await client.api('/users')
    .select('displayName,givenName,mail,userPrincipalName')
    .get(); 

Note: In Ms Graph users endpoint givenName is the first name field
of the user.

Leave a comment