Office 365 Set resource calendar permissions

Hi,

As more and more of users move to the cloud the requirements for administrators change.
Simply starting Powershell is no longer enough as the systems we want to configure and monitor are further away from us.
Fortunately for us the step to connect to Office 365 is quite easy, as long as you know what to do.
I have a script to connect using the cmdlets in step 1.

The default settings for resource calendars in Office 365 is to show you busy/free information and nothing else. This can’t be changed from the web-gui, but we can easily do it from Powershell. The room in my example is called Room with email room@nianit.com.

1. Connect to Office 365 using Powershell.

$Creds = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $Creds -Authentication Basic -AllowRedirection
Import-PSSession $Session

A log on prompt will appear where you supply your credentials and select “OK”.
You will now get connected using Powershell.

2. To view the settings for your calendar you can use the following cmdlet.

Get-MailboxFolderPermission -Identity room@nianit.com:\calendar

3. Change the default settings for the resource calendar.

Set-MailboxFolderPermission -Identity room@nianit.com:\calendar -User Default -AccessRights LimitedDetails

The following attributes are available to you.

Owner
PublishingEditor
Editor
PublishingAuthor
Author
NonEditingAuthor
Reviewer
Contributor
AvailabilityOnly
LimitedDetails

4. To exit the session you type

Remove-PSSession $Session

And that is all.
Good luck with your configuration of Office 365.

Leave a Reply

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