Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

Support for Client Credentials grant flow for Online Management API for Dynamics 365

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

I have a question on the new online management API for D365 admin portal. Can we use the Admin API's with Client Credentials grant flow? The steps mentioned in the Developer Guide(https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/online-management-api/authentication) uses the Authorization Code flow, prompting the user to validate with his credentials.

I have my client Id and secret from the app registered and trying to call https://admin.services.crm.dynamics.com/api/v1/Instances API

I am able to get the token, but getting an Authorization error when making the call to the API.

Does it only support Authorization Code grant flow?

Categories:
  • AKhaing Profile Picture
    AKhaing 5 on at
    RE: Support for Client Credentials grant flow for Online Management API for Dynamics 365

    I ran into similar situation today.

    I guess the problem is the Authority (https://login.windows.net/common/oauth2/authorize/) is trying to look for an App in dynamics.com tenant but the app is registered in our O365 tenant. I am getting this error during the token generation.

    * AADSTS70001: Application with identifier '<ApplicationID>' was not found in the directory dynamics.com

    If I change the Authority to use my O365 tenant ID instead of 'common', a token is successfully generated, however, it throws an Authorization error.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,399 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans