I have setup Azure AD, added app/key/delegated permissions according to here, with the same account as my dynamics 365.
I am get my token with client credentials grant according to here. So far so good.
However when i use the bearer token to get https://<myorg>.crm.dynamics.com/api/data/v8.2, the response is "HTTP Error 401 - Unauthorized: Access is denied"
Did I do anything wrong? How can I make it work? Is there any configuration needed on dynamics/office 365?
Thank you
KL