Hello All,
I am trying to generate bearer token from postman. i have provided following values but unable to get scope value. Can anyone please assist in understanding where can i get this value from:
Just to add one point, I am new to accessing web api. My task is simple to generate the bearer token to call D365 web api.
Hey John,
Try to use Grant Type as Implicit as per the documentation here ::https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/webapi/setup-postman-environment#connect-with-your-common-data-service-environment
Please also ensure that you have Azure AD application registered in order to complete this delegated authentication.
Walkthrough: Register an app with Azure Active Directory ::https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/walkthrough-register-app-azure-active-directory
Please mark my comments as answered if this helps.
Thanks,
Saurabh
Thanks for the response.
I have tried with implicit grant type as well but still it asks for scope. below is the snapshot:
My app is registered in Azure Active directory with all options verfied as mentioned in the walkthrough link.
Anyway i was able to receive the scope value following this article
stackoverflow.com/.../how-to-request-an-azure-bearer-token-properly-or-why-does-it-ask-me-to-send-a-s
Scope : admin.services.crm.dynamics.com/.default was the value i used for dynamics api
I did some misconfigurations on Azure AD app registration manifest file (Like "allowPublicClient": false, & "oauth2AllowImplicitFlow": true,) and reverted it back to see if the saved cookies can cause authentication issues with Azure AD and it turns out that it does as I could see an error from Azure AD though the AAD error code was different for me (AADSTS700051).
Please try to clean the cookies on Post man tool from ::
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
MVP-Daniyal Khaleel 125
Tom_Gioielli 121 Super User 2025 Season 2
Erin Lubben 73