Graph API returns User Not Found 401

Dominik 0 Reputation points
2024-07-22T20:43:27.79+00:00

Hello, I try to post a question regarding an issue with my Entra ID license in connection to an App Registration via Azure. However, despite following the rules of posting, it still keeps deleting my question:

User's image

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,259 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,080 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Yakun Huang-MSFT 6,415 Reputation points Microsoft Vendor
    2024-07-23T01:47:14.3133333+00:00

    Hi @Dominik

    We have checked the issue you published, the error may be caused by the user does not have the MS 365 License, please check whether the user has a valid License in Azure AD, as shown below:

    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.

    0 comments No comments

  2. Vasil Michev 107.7K Reputation points MVP
    2024-07-23T06:52:12.7366667+00:00

    Does the user whose presence you are trying to retrieve have a valid Teams license assigned? If you are testing this with your own subscription, have in mind that Entra ID Premium licenses do not include Teams. You can sign up for a free trial for Microsoft 365 to get this functionality.

    0 comments No comments

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.