Graph API unauthorized_client: The client does not exist or is not enabled for consumers.

Yu, Lawrence 21 Reputation points
2022-10-02T16:19:43.977+00:00

I registered an app with organization (non-personal). When trying to get authorization, I got "unauthorized_client" error. I did setup localhost as redirect URI and here are the API permission
246822-image.png

Do I need to Expose the API and authorize the client?
246832-image.png

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,407 questions
0 comments No comments
{count} votes

Accepted answer
  1. Clément 76 Reputation points
    2022-10-02T19:57:38.917+00:00

    Just to be sure, have you replaced 'consumers' text by your tenant id in the request URL?


3 additional answers

Sort by: Most helpful
  1. Clément 76 Reputation points
    2022-10-02T19:09:26.78+00:00

    Hello,

    Could you show us the app registration configuration? Authentication and API permissions panels to begin.

    And the request url you use as well, I wonder which OAuth flow you specify.

    0 comments No comments

  2. Yu, Lawrence 21 Reputation points
    2022-10-02T19:39:18.293+00:00

    Thank cmercier for responding. Here are three screen grab. API Permission has been included in the first message.

    1. App Registration:
    2. Authentication One
    3. Authentication Two

    246842-image.png

    246826-image.png

    246852-image.png

    0 comments No comments

  3. Yu, Lawrence 21 Reputation points
    2022-10-02T19:42:54.423+00:00

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.