question

icehorizon-1202 avatar image
0 Votes"
icehorizon-1202 asked ShwetaChoudhary-8869 answered

Graph API Get Calendar result in Resource not found

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-calendar
image.png (64.1 KiB)
image.png (59.6 KiB)
image.png (135.0 KiB)
image.png (55.9 KiB)
image.png (55.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ShwetaChoudhary-8869 avatar image
1 Vote"
ShwetaChoudhary-8869 answered

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!




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.