Hello,
Thank you for reaching out to Microsoft Support!
Yes, the error you’re encountering with the Get-MgUserCalendarView
command could indeed be due to insufficient permissions. Here are a few things to check:
- Permissions: Ensure that the user executing the command has the necessary permissions. The
Calendars.Read
scope allows read access to the user’s calendar, but if you’re trying to access a shared or resource calendar, you might needCalendars.Read.Shared
. Users Calendar should be shared with signed-in user. - User ID and Calendar ID: Verify that the
UserId
andCalendarId
parameters are correct. The error “The specified object was not found in the store” often indicates that the specified calendar or user does not exist or is not accessible with the provided credentials. - Date and Time Range: Ensure that the
StartDateTime
andEndDateTime
parameters are correctly formatted and within a valid range.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.