Office 365 calendar sharing

Soldato
Joined
11 Feb 2004
Posts
4,532
Location
Surrey, UK
We're a small firm and use Office 365 for Exchange and calendars.
We have 20 users, and want to force a change so that all calendars can be viewed by anyone within the organisation, except when time is flagged as private. Apparently it's possible via Powershell.

Anyone here done anything similar?
 
Yep....

Something like:
Code:
$credentials = Get-Credential -Credential {enter your O365 creds here}
Write-Output “Getting the Exchange Online cmdlets”

$Session = New-PSSession -ConnectionUri https://outlook.office365.com/powershell-liveid/ `
-ConfigurationName Microsoft.Exchange -Credential $credentials `
-Authentication Basic -AllowRedirection
Import-PSSession $Session

foreach($user in Get-Mailbox -RecipientTypeDetails UserMailbox) {

$cal = $user.alias+”:\Calendar”

Set-MailboxFolderPermission -Identity $cal -User Default -AccessRights LimitedDetails

}

1st line you need to enter your O365 creds after the -credential parameter. This needs to be a user with at least Exchange Admin rights to O365

Last line, you need to choose the access right from the following list

Author
Contributor
Editor
Owner
PublishingEditor
Reviewer
AvailabilityOnly
LimitedDetails

LimitedDetails gives "free/busy", I would think you'd want "Availability Only" except for those users who should be able to make calendar appointments for other people. Availabilty Only will retain private appointment info, as long as the user has marked it as a private appointment.

If you can't connect, you might need some O365/Exchange PowerShell modules which I think you can download through the tenant now

Admin Centers>Exchange>Hybrid and select to configure the Exchange Online PoSH Module
 
Back
Top Bottom