I tried to execute the CALL at D365 CRM Online API. I am using Postman.But when I tried to Get new Access Token, I have the following error:
"AADSTS500011: The resource principal named XXXX.api.crm4.dynamics.com was not found in the tenant named XXXXX. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant."
Here the steps that I followed:
Create new App registration on Azure Active Directory
Configure Environment on PostMan
Configure Authorization
Click On "Get New Access Token"
I have this error
How can I solve the issue?
Thanks
Alessandro
Hey!
At the moment you've configured the first 2 parts:
- Application user within Azure
- Postman connection.
However the error message indicates that this "user" (or application user) doesn't exist in dynamics and doesn't have permissions. You seem to be missing an intermediate step where you add the application user to Dynamics and provide access. This is documented on https://docs.microsoft.com/en-us/power-platform/admin/manage-application-users
Regards