Hi,
I am able to obtain teh token with this code snippet but when i use it to call a Dynamics365 WhoAmI web service i get this:
Token acquired
Failed to call the Web Api: Forbidden
Content: {"error":{"code":"0x80072560","message":"The user is not a member of the organization."}}
I followed your blog but this is what i get - can you please help?
Kind regards
Piotr