Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Microsoft Graph Api User.Read.All Not granted for my domain

I am getting the following error or status Not granted for my domain. see the attached document
enter image description here Is this because my role is User?

I tried to find who is Azure AD Global Administrator?

I followed the following steps:

  1. Log into the Azure Portal (https://portal.azure.com).
  2. Click on Azure Active Directory
  3. Click on Roles and administrators
  4. Click on Global administrator
  5. Under Global administrator it says Microsoft Office 365 Portal

what does it mean?
How can I or someone else in organization become Global administrator?
I want API permissions->User.Read.All Not granted for mydomain

PS: My email is work email.

Update 1
My role is user
enter image description here

Update 2
Global administrator - Assignments say's Microsoft Office 365 Portal is my Admin. How to get these credentials?
enter image description here

like image 782
ozil Avatar asked Dec 31 '19 13:12

ozil


People also ask

How do you grant Graph API permissions?

In the left-pane menu, click Azure Active Directory. Select App registrations, then select the ZCSPM application which you want to onboard. In the left-pane menu, click API permissions. Click Add a permission, then select Microsoft Graph.

What is delegated permission in graph API?

Delegated permissions are used by apps that have a signed-in user present. For these apps, either the user or an administrator consents to the permissions that the app requests and the app can act as the signed-in user when making calls to Microsoft Graph.

How do I grant permissions in Azure API?

Select Azure Active Directory > App registrations, and then select your client application. Select API permissions > Add a permission > Microsoft Graph > Application permissions.


2 Answers

Grant consent screenshot

I was similiarly frustrated here: it's very hard to spot, however you'll notice that the 'grant admin consent for -' is reset on every update to permissions.

Therefore: simply re-tick this and wait a few seconds for the warnings to disappear.

I too thought I was missing a step elsewhere, very misleading!

like image 61
Jamie Nicholl-Shelley Avatar answered Oct 10 '22 11:10

Jamie Nicholl-Shelley


For User.Read.All permission you should have Admin Consent which a User cannot avail.

You should have either Global Admin or Application administrator credentials.

Permission Required:

enter image description here

Please refer to this official document Permission details

Admin Credentials:

enter image description here

For Admin credentials details refer to this document

Office 365 Admin Role Assignment:

enter image description here

Hope this will help. Let me know if you have any more concern.

like image 1
Md Farid Uddin Kiron Avatar answered Oct 10 '22 09:10

Md Farid Uddin Kiron