How to Get Azure Active Directory All Users List in Blazor Webassembly ?

Kuldeep Y 36 Reputation points
2022-11-14T10:02:12.66+00:00

Hello,
I Want to Save all Azure active directory user information in my local database, so I want to fetch all Azure active directory Users data through Blazor web assembly app Any help would be awesome.

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,389 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,469 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 55,686 Reputation points
    2022-11-14T17:48:50.637+00:00

    your blazor app will need to login (msal) to azure ad with an account that has enough permission. then use graphapi to get the account data. see docs:

    https://learn.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/graph-api?view=aspnetcore-7.0