Share via

Unable to Retrieve Users from Azure AD in Angular SPA

kunal 0 Reputation points
2024-11-26T10:02:36.3+00:00

I am using work account and authenticating a user through Microsoft Azure AD in my Angular application(SPA). After successfully logging in, I need to fetch all user details from Microsoft AD using the API endpoint: https://graph.microsoft.com/v1.0/users.

To achieve this, I acquire an access token using the acquireTokenSilent method and attempt to include it in the request's Authorization header, as shown in the following code snippet:

getADUsers(): Observable
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.