We automated the configuring of the API graph permissions for Service principals. In the script we are setting Microsoft graph API permissions as wel as Azure Active Directory graph permission and granting Admin consent on the permissions.
We managed to grant Admin Consent for the Microsoft Graph API permissions.
Granting Admin consent for the Azure Active Directory graph permission throws an error:
"AADSTS7000113: Application '74658136-14ec-4630-ad9b-26e160ff0fc6' is not authorized to make application on-behalf-of calls.
The SPN under which the automated script runs, is Global Administrator and Priviliged Role Administrator
Please help.