First, we need to connect to Exchange online via powershell. Launch powershell as Administrator and type the following command and sign in.
Connect-ExchangeOnline -UserPrincipalName [email protected]
To edit full Mailbox permissions, use the commandlets below. Find the Access Rights permissions list below.
Get-MailboxPermission -Identity [email protected]
Add-MailboxPermission -Identity [email protected] -User [email protected] -AccessRights FullAccess
-AccessRights
The AccessRights parameter specifies the permission that you want to add for the user on the mailbox. Valid values are:
- ChangeOwner
- ChangePermission
- DeleteItem
- ExternalAccount
- FullAccess
- ReadPermission
To edit the access rights for a specific folder or in this case the calendar, amend the commandlets to the below. Find the access rights list for calendar permissions at the bottom.
Add-MailboxFolderPermission -Identity [email protected]:\Calendar -User [email protected] -AccessRights Owner
Set-MailboxFolderPermission -Identity [email protected]:\Calendar -User [email protected] -AccessRights Owner
Get-MailboxFolderPermission -Identity [email protected]:\Calendar -User [email protected]
Remove-MailboxFolderPermission -Identity [email protected]:\Calendar -User [email protected]
-AccessRights:
- Author: CreateItems, DeleteOwnedItems, EditOwnedItems, FolderVisible, ReadItems
- Contributor: CreateItems, FolderVisible
- Editor: CreateItems, DeleteAllItems, DeleteOwnedItems, EditAllItems, EditOwnedItems, FolderVisible, ReadItems
- NonEditingAuthor: CreateItems, DeleteOwnedItems, FolderVisible, ReadItems
- Owner: CreateItems, CreateSubfolders, DeleteAllItems, DeleteOwnedItems, EditAllItems, EditOwnedItems, FolderContact, FolderOwner, FolderVisible, ReadItems
- PublishingAuthor: CreateItems, CreateSubfolders, DeleteOwnedItems, EditOwnedItems, FolderVisible, ReadItems
- PublishingEditor: CreateItems, CreateSubfolders, DeleteAllItems, DeleteOwnedItems, EditAllItems, EditOwnedItems, FolderVisible, ReadItems
- Reviewer: FolderVisible, ReadItems