Graph API Get Calendar result in Resource not found

icehorizon 21 Reputation points
2021-07-12T04:55:41.71+00:00

Hi

Want to post/view calendar without user signing in by using the client_credentail workflow. however result in resource not found error. Tried to search but no solution found.

My setup
113616-image.png

113703-image.png

Using post to get the access token and check with jwt:
113704-image.png

Tried in graph explore and delegated permiison path and it works: endpoint with https://graph.microsoft.com/v1.0/me/events
113705-image.png

However when try with postman workflow:
https://graph.microsoft.com/v1.0/users/{id}/events
it always get the result not found error
113617-image.png

Anything I missed out on this?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,674 questions
0 comments No comments
{count} votes

Accepted answer
  1. Shweta Choudhary 601 Reputation points Microsoft Employee
    2021-07-15T18:25:23.273+00:00

    Hi,

    For me, client credential flow for this scenario worked. Unfortunately, I am not able to repro your issue.
    Also looking at the error you are getting, it seems the issue is not with the Graph API or roles, but with the way your mailbox is configured.

    Please try a couple of things -

    1. Make sure your mailbox is not inactive, soft-deleted, or is hosted on-premise.
    2. If you are having a hybrid setup of Microsoft 365 with an on-premise exchange server, please look at this documentation once to rule out you are not missing anything.
    3. Check this thread to see if this is not your scenario.
    4. Lastly, please check if your tenant has not configured some rules around the mailbox.

    If this helps, please consider accepting it as an answer and upvoting.
    Thanks!

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful