...
The required authorization must be set for the following APIs:
- Microsoft Graph;
- Windows Azure Active Directory.
so, after creating the application, you'll need to select it and add a new permission for both those APIs that API in the Required permissions menu.
...
- In the Required permissions menu, click on Windows Azure Active Directory;In the Enable Access menu, select all permissions from Delegated Permissions and click on Microsoft Graph;
- Choose Delegated Permissions and add these permissions:
- APIConnectors.Read.All
- Directory.AccessAsUser.All
- PrivilegedAccess.ReadWrite.AzureAD
- profile
- User.Read
- Click Save;
- Finally, back to Required permissions menu, click on the Grant Permissions button.
...