I have used MSAL.Net (followed blog https://msftblog.com/using-msal-net-with-dynamics-365-webapi-in-dotnet-core/) to communicate with Dynamics CRM which is returning the access token & when I give a call to products API I see below message & cannot move ahead.
Failed to call the Web API: Forbidden
Content: {"error":{"code": "0x80072560", "message": "The user is not a member of the organization."}}
However, if I login to dynamics 365 crm & copy the URL (https://{Company}.api.crm8.dynamics.com/api/data/v9.1/products) in the browser I am able to get the response.
Just a background:
Have Azure active subscription & Dynamics 365 30 day trial.
Any help on resolving the above error much appreciated.
Thanks & Regards,
Raghavendra Habbu