ResourceNotFound error when calling https://graph.microsoft.com/v1.0/me/people

Sergei Loginov 26 Reputation points
2022-06-16T21:27:28.637+00:00

Hello!
We have a multi tenant application registered in Azure Active Directory. 'Tenant A' is a home tenant for application, 'Tenant B' is a another tenant. Application object contains the following API permissions:
212215-image.png

We've given admin consent to these permissions for both tenants (A and B):
212129-image.png

But we observe the following responses for following graph api requests:

On behalf of user in tenant A:
/me - OK
/users - OK
/me/people - OK
/me/calendars - ErrorAccessDenied (Access is denied. Check credentials and try again)

All these response are expected since we have User.Read, User.ReadBasic.All and People.Read permissions, but don't have Calendars.Read permissions

On behalf of user in tenant B:
/me - OK
/users - OK
/me/people - ResourceNotFound - Resource could not be discovered.
/me/calendars - ResourceNotFound - Resource could not be discovered.

The main question is why response to '/me/people' request is 'ResourceNotFound' and how to make it works?

And second minor question is we response to '/me/calendars' is also 'ResourceNotFound', but not 'ErrorAccessDenied' like in tenant A?

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

Accepted answer
  1. 2022-06-17T00:33:38.93+00:00

    Hello @Sergei Loginov , usually you will get ResourceNotFound when querying /people or /calendars endpoints if the user has no Office licenses assigned. The resource existence check will be done before any security check, that's why you don't get ErrorAccessDenied.

    Please take a look to Assign Microsoft 365 licenses to users.

    Let us know if this answer was helpful to you or if you need additional assistance. If it was helpful, please remember to accept it so that others in the community with similar questions can more easily find a solution.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful