I want to share other peoples Office 365 calendars with me, with different access rights for testing. I have Exchange admin rights so that I can poke around in the Office365 Exchange config.
With https://theitbros.com/add-calendar-permissions-in-office-365-via-powershell/ as inspiration and some help from https://social.technet.microsoft.com/Forums/office/en-US/d59a04ec-3d9d-40c1-8937-fedfba79b888/assigned-reviewer-access-rights-through-powershell-but-can-create-calendar-appointments?forum=Exch2016PS I have done the following
- Start Powershell as admin
- Log into Office365:
$LiveCred = Get-Credential - Create a new session:
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection - Import the Office365 session:
Import-PSSession $Session - Query the mailbox folder statistics with
Get-MailboxFolderStatistics, but filter on 'identity':
Get-MailboxFolderStatistics [email protected] | fl identity
This shows names for these 'Identities' and tells me that the calendar in Dutch is calledAgenda. - Update the permissions for those folders:
Add-MailboxFolderPermission -Identity [email protected]:\Agenda -user [email protected] -AccessRights PublishingEditor
Add-MailboxFolderPermission -Identity [email protected]:\Agenda -user [email protected] -AccessRights Editor
Add-MailboxFolderPermission -Identity [email protected]:\Agenda -user [email protected] -AccessRights Reviewer
If I now verify the permissions with
Get-MailboxFolderPermission [email protected]:\Agenda
Get-MailboxFolderPermission [email protected]:\Agenda
Get-MailboxFolderPermission [email protected]:\Agenda
... I see access rights {PublishingEditor}, {Editor} and {Reviewer}:
However, in OWA (Outlook Web Access) I can still create appointments in b's calendar, where it says {Reviewer}.
What am I overlooking?

