Last post Apr 17, 2020 04:15 AM by sivapooja
Member
22 Points
212 Posts
Apr 15, 2020 01:21 PM|sivapooja|LINK
Hi,
I need to read all the user details in my company azure ad from asp.net web api? should i logged in to Azure Ad to get the user list?
Star
9831 Points
3120 Posts
Apr 16, 2020 06:24 AM|Brando ZWZ|LINK
Hi sivapooja,
As far as I know, you could use Graph API List users to get all the user in current Ad domain to achieve this.
More details about the graph api, you could refer to below article.
https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-graph-api
Best Regards,
Brando
Apr 17, 2020 04:15 AM|sivapooja|LINK
Dear Brando,
I am bit confused, this is my development structure
Web Client - Vanilla JS SPA - MSAL Implicit Flow Authentication
Web API - .Net Framework Web API - Validate token from Web Client and send the requested resource if token valid.
i need to get organization user list from azure ad and show in web Client
can i query from javascript spa? or should i query from asp.net web api and send the list to Web Client
Member
22 Points
212 Posts
Read Azure Ad user list
Apr 15, 2020 01:21 PM|sivapooja|LINK
Hi,
I need to read all the user details in my company azure ad from asp.net web api? should i logged in to Azure Ad to get the user list?
Star
9831 Points
3120 Posts
Re: Read Azure Ad user list
Apr 16, 2020 06:24 AM|Brando ZWZ|LINK
Hi sivapooja,
As far as I know, you could use Graph API List users to get all the user in current Ad domain to achieve this.
More details about the graph api, you could refer to below article.
https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-graph-api
Best Regards,
Brando
Member
22 Points
212 Posts
Re: Read Azure Ad user list
Apr 17, 2020 04:15 AM|sivapooja|LINK
Dear Brando,
I am bit confused, this is my development structure
Web Client - Vanilla JS SPA - MSAL Implicit Flow Authentication
Web API - .Net Framework Web API - Validate token from Web Client and send the requested resource if token valid.
i need to get organization user list from azure ad and show in web Client
can i query from javascript spa? or should i query from asp.net web api and send the list to Web Client