Share via

Efficiency of logging users with Azure AD, and extract data from Microsoft Graph

OdMa 0 Reputation points
2023-03-27T12:19:03.2133333+00:00

I am building for a specific company a login system by a Microsoft user. After connecting the user, I need to extract data about him to know what permissions I can give him, and for this I use Microsoft Graph.

I am currently making a login with a Microsoft account using the Azure AD, and then the window opens where they receive the authorization code, which the user must enter in another window so that I can extract the data from the Microsoft Graph - in terms of user experience, this is a very long login And complicated, so I ask if there is an easier way to carry out this process?

This is the code that contains the login and logout functions of users connecting with a Microsoft account:
User's image

This is the code that contains the extract user data with Microsoft Graph:
User's image

Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.