microsoftgraph / microsoftgraph/microsoft-graph-explorer-v4

Microsoft Graph API returns ErrorInvalidUser for valid mailbox user while FindMeetingTimes succeeds

Open
#4,038 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ToTriage
Dominant language
TypeScript
Stars
260
Forks
110
PR merge metrics
No merged PRs in 30d

Description

We are using Microsoft Graph API with Application Permissions (Client Credentials Flow).

The access token is successfully generated and contains the following:

We are able to successfully call the FindMeetingTimes API and retrieve available meeting slots for users.

Example:

POST /v1.0/users/{organizer}/findMeetingTimes

Response:

  • Returns available meeting slots successfully.

However, when attempting to create or access calendar events for a user mailbox, Microsoft Graph returns the following error:

{
"error": {
"code": "ErrorInvalidUser",
"message": "The requested user '[gaurav.anand@sinch.com](mailto:gaurav.anand@sinch.com)' is invalid."
}
}

Endpoints affected:

GET /v1.0/users/gaurav.[anand@sinch.com](mailto:anand@sinch.com)/calendar/events

and

POST /v1.0/users/gaurav.[anand@sinch.com](mailto:anand@sinch.com)/events

Observations:

  1. The user mailbox exists and the UPN is confirmed to be correct.
  2. The application token is successfully generated.
  3. FindMeetingTimes API works successfully using the same application and token.
  4. Calendar event APIs fail with ErrorInvalidUser for the same mailbox.
  5. We would like assistance understanding why Graph can resolve availability information but returns ErrorInvalidUser when accessing the mailbox calendar directly.

Please help determine whether this is related to mailbox resolution, Exchange Online configuration, Application Access Policies, tenant configuration, or a Microsoft Graph issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository file, test, or entry point is identified; the report concerns Microsoft Graph behavior outside the Graph Explorer codebase. Start by reproducing the listed GET and POST calendar endpoints with the same application token and checking the referenced mailbox and tenant configuration. Done means identifying whether the failure is caused by mailbox resolution, application access policy, tenant configuration, or Graph itself.

Written by the indexing model from the issue text.

Assessment

Domain
api, authentication
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.