We can find the available time of our colleagues using the findMeeting API and this will give us the available slots of the user. This works perfectly for my calendar.
Usecase: For the executive assistant, to get meetings on behalf of a shared or delegate mailbox that they have access to, this API doesn’t work.
During our implementation:
The findMeeting API works correctly for the authenticated user:
https://graph.microsoft.com/v1.0/me/findMeeting
However, when attempting to retrieve available meeting times for a shared or delegate mailbox using:
https://graph.microsoft.com/v1.0/users/{sharedMailboxEmailId}/findMeeting
the request returns an "Unsupported Scenario" error.
Even with the required permissions (including Calendars.Shared.Read) configured, the API does not support retrieving availability for shared or delegate mailboxes.
This is an issue of the Microsoft REST API. There is another GetSchedule API for a similar purpose, but that doesn’t suit our requirement. We are blocked here.
By any chance if you have come across this issue, please share us the solution.