I've encountered the 'unauthorized_client: The client does not exist or is not enabled for consumers' error while trying to use authentication via Microsoft Graph in my web service; any ideas on how to fix this?

Netlas Team 0 Reputation points
2024-04-16T14:51:12.9333333+00:00

Hello, I've added authentication via Microsoft Graph to my web service. Everything was working fine, but at some point, I started getting an "unauthorized_client: The client does not exist or is not enabled for consumers" error when trying to authenticate. Even creating a new application led to the same result. Has anyone encountered a similar issue? Any help would be greatly appreciated. Thank you!

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,612 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 36,976 Reputation points
    2024-04-17T02:49:05.2666667+00:00

    Hi @Netlas Team

    This is because your app has not been registered to allow personal account logins. Go to your app, find the manifest, and change the signInAudience property value to AzureADandPersonalMicrosoftAccount and the accessTokenAcceptedVersion property value to 2.

    User's image

    User's image

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.