Avinash
Avinash

Reputation: 2183

Retrieving the users from Azure tenant using Graph API getObjectsByObjectIds method

I went to Azure portal -> Active Directory -> App registrations to create an App. And I have given few permission to Microsoft Graph API and Azure active directory API

Then I am trying to retrieve the users from Azure Tenant. I am using graph API retrieve the Users. PFB is the URL i am using

https://graph.windows.net/AzureTenantIdhere/getObjectsByObjectIds?api-version=1.6

I am getting 403: Forbidden error When i was trying above URL. I know this error is due to the permissions of the App(Above created)

Can some please let me know what all the permissions i need to give the App.

Upvotes: 0

Views: 1802

Answers (1)

Joy Wang
Joy Wang

Reputation: 42043

Your App need a required permission with Microsoft Graph called Directory.Read.All, refer to this article.

The Display String in AAD called Read directory data, just give the permission. You could refer to this article.

enter image description here

Upvotes: 2

Related Questions