I am working in Azure Application registration process to grant application permissions using V2 end point.
I have added "Mail.Read" as an application permission to the azure app
I have used following URL to give admin consent with specified scope as "Mail.Read".
https://login.microsoftonline.com/ff63ebda-8bfe-4e14-aba1-504db5c53970/v2.0/adminconsent ?client_id=34dbd899-c9fa-415f-8646-28c644baf3ec &scope=https://graph.microsoft.com/Mail.Read &redirect_uri=https://google.com &state=12345
I accept the requested permission without an issue.
I checked the given permission after accepting and Mail.Read permission is added as "Delegated Permission" which is not the expected behavior.
Then I tried to give consent using default scope(https://graph.microsoft.com/.default).
https://login.microsoftonline.com/ff63ebda-8bfe-4e14-aba1-504db5c53970/v2.0/adminconsent ?client_id=34dbd899-c9fa-415f-8646-28c644baf3ec &scope=https://graph.microsoft.com/.default &redirect_uri=https://google.com &state=12345
I accept the permissions successfully.
Then permission is added as application permission which is the expected behavior.
My requirement is to use admin consent v2 end point with specified scopes to grant application permissions. I need to know what is the possible way of doing that using admin consent v2 end point.