Hi,

I am trying to connect to CRM Dynamics API using client_credentials.

Getting the access token.

But when trying to retrieve data using the instance URL and the access token, getting "User does not belong to the organisation" error message.

As per Microsoft docs, 

Cause

This error can occur if there is a security group associated with the Dynamics 365 instance and you are not a member of that security group. 

But there is no security group associated with the respective CRM instance.

The settings in Azure are as per MS docs. Also, in Office365, a user has been created and given the role of System Administrator. [A copy of the role of System Administrator is given to this Application User]

Kindly advice on how to rectify this issue & proceed further.

Best Regards,

Rashmy