Hi,
We am trying to read the calendar events of all users with an enterprise app with admin consent but i am getting a ErrorItemNotFound
error.
The following permissions are granted on application level:
- Calendars.Read
- User.ReadBasic.All
We are using graph V1.0 and Oauth 2.0 to call /users/{userId}/calendar/events
.
Using the graph explorer i am getting the same error.
When i call /users
or /me/calendar/events
it works fine.
What am i missing?
Could it be because the app wasn't verified?
Full error:
GraphError {
statusCode: 404,
code: 'ErrorItemNotFound',
message: 'The specified object was not found in the store.',
requestId: '7045e26f-5bb8-461f-be3e-d5b0f1b174fd',
date: 2022-10-06T08:59:13.000Z,
body: '{"code":"ErrorItemNotFound","message":"The specified object was not found in the store.","innerError":{"date":"2022-10-06T10:59:13","request-id":"7045e26f-5bb8-461f-be3e-d5b0f1b174fd","client-request-id":"e260ceae-17c4-37f6-02ac-f53dd15ed527"}}'
}