Sharing Calendar with Private Item Viewing Rights in Office 365

Normally, sharing a calendar with others doesn’t provide them the privilege to view the private appointments you put in your calendar. But if you do, you will also need to give the others the delegates access. preferably with automatically send a message unchecked so the delegates don’t get all the unnecessary notifications.

You can also accomplish the same with PowerShell, which is my preferred way to change settings like this these days.

First, as always, let’s connect to the Exchange Online,

$username = 'email-address'
$pwd = ConvertTo-SecureString 'password' -asplaintext -force;
$cred = New-Object -TypeName PSCredential -argumentlist $username, $pwd

$getsessions = Get-PSSession | Where-Object {$_.State -eq 'Opened'}

if (!$getsessions){
    Connect-ExchangeOnline -Credential $cred
}

Then, use the Add-MailboxFolderPermission to assign access rights.

$user1 = 'emailaddress1:\calendar'
$user2 = 'emailaddress2'
Add-MailboxFolderPermission -Identify $user1 -User $user2 -AccessRights Editor -SharingPermissionFlags Delegate,CanViewPrivateItems -SendNotificationToUser $false

That will give the $user2 the Editor access to $user1’s calendar with the privilege to view Private items as well.

Leave a Reply

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