Thank you for posting this in Microsoft Q&A.
A token can be acquired for multiple scopes if all those scopes belong to same resource. For example, in a single request you can acquire token for openid
and offline_access
scopes because they are part of Graph API resource. Exchange.Manage
scope belongs to Microsoft 365 Mail API resource. To acquire token for your API, you will need to make a separate request as it is a completely different resource.
In my environment, I successfully obtain the authorization code by making a below HTTP request.Please attempt the HTTP request mentioned below and inform me of any difficulties you encounter by providing a response through comments.
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?
client_id=93f3-e20de961633b
&response_type=code
&redirect_uri=
https://login.microsoftonline.com/common/oauth2/nativeclient
&response_mode=query
&scope=Exchange.Manage (or) https://outlook.office.com/Exchange.Manage
Authorization code:
Hope this helps. Do let us know if you any further queries.
Thanks,
Navya.