microsoft / Dynamics-AX-Integration

Dynamics AX Integration samples and demos.
285 stars 356 forks source link

"AADSTS65001: The user or administrator has not consented to use the application with ID, Multi-tenant #86

Open ChandrachurhGhosh opened 5 years ago

ChandrachurhGhosh commented 5 years ago

The previous thread did not provide a solution for my issue, hence creating this new one.

I am using multi-tenant Azure AD. The user belongs to x.com domain and the application uses y.onmicrosoft.com domain. The user is a global administrator in y (Azure AD). Application is failing to use the native app registration and the log says "The user or administrator has not consented to use the application with ID".

abalhusseini commented 5 years ago

I went through this issue before and I did solve it by using this url: https://login.microsoftonline.com//oauth2/authorize?client_id=&response_type=code&redirect_uri=&resource=https://graph.windows.net&prompt=admin_consent