microsoftgraph / microsoftgraph/microsoft-graph-explorer-v4
Microsoft Graph API returns ErrorInvalidUser for valid mailbox user while FindMeetingTimes succeeds
Nobody has claimed this yet.
- 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:
- Audience: https://graph.microsoft.com/
- Permission: Calendars.ReadWrite (Application)
- Token type: Application Token
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:
- The user mailbox exists and the UPN is confirmed to be correct.
- The application token is successfully generated.
- FindMeetingTimes API works successfully using the same application and token.
- Calendar event APIs fail with ErrorInvalidUser for the same mailbox.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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