If you need to Grant a single user access to access all users calendars in Office 365 this can be achieved by using the Add-MailboxFolderPermission cmdlet.
If you are adding permissions to a mailbox where no access rights exist already then this is straightforward, but if there is already some access rights in place then the command will fail, because there is an existing permissions entry in place.
You can check for the presence of existing folder permissions with the use of Get-MailboxFolderPermission cmdlet.
Finally if you find there is any existing permission in place you can remove it by using the Remove-MailboxFolderPermission cmdlet.
I have combined these three steps have been into the PowerShell script below which will check for an existing permission, remove it if it exists and then add the new access right. This is useful if you want to re-run the script on a regular basis so that it captures new users.
PowerShell script to Grant a single user access to access all users calendars in Office 365
- Type in the UPN(User Principal Name) of the user that you want to grant calendar permissions.
- Select the permissions level you would like them to have.
- Copy and paste the code to a Powershell window and the calendar permissions will be assigned.
The various levels of permissions are as follows:
- None – Has no access to the folder.
- Owner – Gives full control of the folder. An Owner can create, modify, delete, and read folder items; create subfolders; and change permissions on the folder.
- Publishing Editor – Has all rights granted to an Owner, except the right to change permissions. A Publishing Editor can create, modify, delete, and read folder items and create sub folders.
- Editor – Has all rights granted to a Publishing Editor, except the right to create subfolders. An Editor can create, modify, delete, and read folder items.
- Publishing Author – Can create and read folder items and create subfolders but can modify and delete only folder items that he or she creates, not items created by other users.
- Author – Has all rights granted to a Publishing Author but cannot create subfolders. An Author can create and read folder items and modify and delete items that he or she creates.
- Nonediting Author – Can create and read folder items but cannot modify or delete any items, including those that he or she creates.
- Reviewer – Can read folder items but nothing else.
- Contributor – Can create only folder items and cannot read items.
- Availability Only – View only availability data
- Limited Details – View availability data with subject and location
This should generate output similar to the below: