Share via

Graph API - CalendarView - Delegated - ItemNotFound - Reoccuring events marked as private and one of these events was changed

MR. F 11 Reputation points
2022-12-12T15:57:54.363+00:00

Hi,

I have problems to access the shared calendars via CalenderView of my colleagues. The used account only has access to certain user calendars. In general it works but when a user creates reoccuring events marked as private and changes the date of one of the events (type = exception), the CalendarView request doesn't work anymore. Filters don't change anything.

Line: 0 Code: ErrorItemNotFound  
Message: The specified object was not found in the store.  

Is this a bug? Or how can I access the calendar events?

Microsoft Security | Microsoft Graph
0 comments No comments

2 answers

Sort by: Most helpful
  1. MR. F 11 Reputation points
    2023-01-06T14:19:21.037+00:00

    Hi,

    thank you very much for the response and sorry for the late response, as I was on vacation.

    Well, the problem is that the CalendarView request doesn't work at all anymore. E.g. I try to read the calendar events of a colleague for the next year and I'm only interested in events which contain certain characters in the subject ([]) and aren't private (filters don't help). But the whole request crashes because there is this private reoccurring event somewhere where one of the dates was changed. The calendar permission given to the user is/should be sufficient for the task.

    So, the API crashes in handling these private reoccurring events. My expectation would be a meaningful error message or that this event will not be exported - which is totally fine for me. So for now the workaround is that the my colleagues aren't allowed to have reoccurring private events in their main calendar. They can create an additional calendar where they can create those events.

    Best Regards

    Was this answer helpful?

    1 person found this answer helpful.

  2. Gopinath Chennamadhavuni 2,446 Reputation points
    2022-12-23T11:07:42.623+00:00

    Hi @MR. F ,

    Hope you are doing well.

    I can reproduce your issue in my test tenant. When the delegated user is trying to read a private room event which is not permissible. This is an expected behavior.

    Please check the calendar sharing permissions and assign them properly to view the events. Please refer the link for more details: https://learn.microsoft.com/en-us/graph/api/user-list-events?view=graph-rest-1.0&tabs=http.

    In order to access private room event from MS Graph call- for that particular mailbox, select the checkbox for Let delegate view private events under the sharing and permissions while sharing the calendar with others.

    273705-private-event-1.png
    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Hope this helps.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.