Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2023 Release Wave 1Check out the latest updates and new features of Dynamics 365 released from April 2023 through September 2023
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
I have created azure app registration, got clientid, clientsecret, tenantid.
There is a requirement that one of the third party vendor has to push records to crm entity. For that I need to provide the api details and clientsecret to them.
Same kind of requirement is for another third party vendor also. Is it advisable to let them use the same azure app details.
But different users has to be create with different security roles for them.
I would suggest you to create different apps in azure for vendors. that way you can keep track of every app interaction with D365
I agreed with naveen.
I can understand. But I am just asking is it possible technically ? Creating two application users having different security roles and assign same clientid to both of them ?
I don't think we can create two app users with same client id
I got clientid, clientsecret after done the azure app registration.
I can get the access token by specifying the below details
"grant_type" : "Client Credentials",
"ClientID" : "xxxx",
"Access token url" : "login.microsoftonline.com/.../token",
"scope" : "xxxxxx.crm8.dynamics.com/.default"
But, when i consume the crm api using this token, im getting 401: UnAuthorized error.
When I decode the access token, i get below details
I have created the application user in dynamics, assigned security role and map with the clientid. But I didnt find the user/role details in the decrypted access token.
Anything I did wrong or need to do something else ?
Please take a look at this git:
C# : github.com/.../Program.cs
Have you added crm_online impersonation permission to your azure app under api permission tab..
Please check step from above article
I have not changed anything, but it is working now.
Business Applications communities