I've got one bug and one issue concerning GetCalendars action.
1. There is a bug, which is when you set view/edit permission on someone's calendar to another person using powershell,
and then that person opens that calendar using outlook365/calendar -> add calendar -> from directory, GetCalendars returns no result even if the person is able to view, add and delete all the events in it.
Only setting 'send notification mail' using powershell and clicking "add and view" in it do the trick.
2. GetCalendars returns only 256 items per account. Unfortunetaly it's absolutely unuseful for the task I'm trying to do. I'd like it to be at least 4 times more. Like 1024 or smth😞
2. It occurs when I share the calendar using PS without "-SendNotificationToUser:$true" option and thus User adds shared calendars manually.
If I send notification and user adds it clicking on the add link in the notify email (it works the same way, when we share a calendar using web interface) - "Get Calendars" is able to get everything just fine.
I have done some research and found no way of doing the same action (open&add shared calendar) using PS.