How to Edit Calendar Permissions in Office 365 [Solved]

How to Edit Calendar Permissions in Office 365

Office 365Need to edit/change or add/remove calendar permissions in Office365?  I had to do this for the first time this morning.  With out access to the users outlook or password I had to break open a little powershell/google search session.

Before you try and edit permissions I’d suggest you view the permissions first, see here on how to do that.

Ok so connect to the 365 system with the usual code:

$Cred = Get-Credential

$s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -Authentication Basic –AllowRedirection

Import-PSSession $s

Now if it’s a simple add just type this

add-MailboxFolderPermission -Identity username1:\Calendar -User username2 -AccessRights PublishingAuthor

Username1 calendar your editing, so username2 is the person needing permission to view or what ever.  Please note that it’s jsut the first part of the email user.name and not the @domain.com  This got me!  The PublishingEditor permission can be replaced with the following depending on what access is required.

Owner, PublishingEditor, Editor, PublishingAuthor, Author, NonEditingAuthor, Reviewer, Contributor, AvailabilityOnly, LimitedDetails

Now I got stumped again, the user already had a permission and I wanted to change it so what you have to do is remove the current permission.  This is why it’s worth viewing the permissions first.

Remove permissions

Remove-MailboxFolderPermission -Identity user@mycompany:\calendar -user myuser@mycompany.com

This stuff is not simple and it’s not easy to find, Microsoft you need to make this easier for Office365 admins!  Or maybe you want to keep us in a job ;)

Credit: http://www.365admin.co.uk/editing-calendar-permissions-office365-with-powershell/

Leave a Reply

Your email address will not be published. Required fields are marked *