web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Azure Active Directory and Microsoft Dynamic 365 finance & operation authentication token issue

(0) ShareShare
ReportReport
Posted on by

I want to use web API for the MicroSoft Dynamic 365 Finance and Operation, as per the their guide line I have created/registered app in the Azure Active Directory and try to generate Access Toke as per below using the Postman, but getting issue of scope :

Error: AADSTS70011: The provided value for the input parameter 'scope' is not valid. The scope https://api.financials.dynamics.com/ is not valid. The scope format is invalid. Scope must be in a valid URI form https://example/scope or a valid Guid ..

Postman get access token data

Auth URL : https://login.microsoftonline.com/coromed.onmicrosoft.com/oauth2/v2.0/authorize

Access Tocken URL : https://login.microsoftonline.com/coromed.onmicrosoft.com/oauth2/v2.0/token

Client id = [Our Client ID]

Client Secret = [hsdhjkfhsjkdhfjkwshdjkfhsjkdhfjsdjhfgwjdsgfwegew]

Scope = https%3A%2F%2Fapi.financials.dynamics.com%2F

Grant Type = Autorization Code

Which parameter and its format have to use in scope field ?

image01.png

image02.png

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mea_ Profile Picture
    60,284 on at

    Hi Divya.Bhalodiya,

    You don't need to specify scope, please refer for example how to get access token

    community.dynamics.com/.../dynamics-365-for-operation-web-service-calls-with-postman

  • Community Member Profile Picture
    on at

    Hi ievgen Miroshnikovm

    You make my day.

    thank you so much.

  • Community Member Profile Picture
    on at

    Hi ievgen Miroshnikov,

    Can you please tell me about Resource?What is it?

  • Mea_ Profile Picture
    60,284 on at

    Could you please elaborate your question?

    Also don't ask several questions in the same thread, it's hard to follow. If original issue is solved mark answer(s) as verified to close it and start new thread for new question.

  • Community Member Profile Picture
    on at

    Hi ievgen Miroshnikov,

    According to the link given by you,

    https://community.dynamics.com/ax/b/dynamicsnavax/archive/2017/05/23/dynamics-365-for-operation-web-service-calls-with-postman,

    i followed the page and got strike into the  following link :

    https://login.windows.net/mytenant.onmicrosoft.com/oauth2/authorize?resource=https%3A%2F%notarealurl1adaos.cloudax.dynamics.com,

    What should i pass into the resource parameter?

  • Mea_ Profile Picture
    60,284 on at

    Your environment url. 

  • Community Member Profile Picture
    on at

    Can you please explain me about environment url ? And How would i get it?

  • Suggested answer
    Mea_ Profile Picture
    60,284 on at

    That's URL you use to access your D365 instance. You had to use it when you created app registration as sign-in URL. Something like

    [View:https://myinstancename.cloud.dynamics.com]

    You can get it from LCS project or ask your system administrator to provide it for you.

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans