Disable anonymous calendar sharing in Office 365 Admin Center and PowerShell.

0
769
views

Disable anonymous calendar sharing in Office 365 Admin Center and PowerShell

During this post, we will run down on how to disable anonymous calendar sharing in Office 365. By default, anonymous calendar sharing is enabled, as an Office 365 admin can you decide what kind of information your user share externally.

With Anonymous calendar sharing enabled the following can be set.

  • Calendar free/busy information with time only
  • Calendar free/busy information with time, subject and location
  • All calendar appointment information

To disabled anonymous calendar sharing, navigate to Office 365 Admin center > Settings > Services & add-ins

A screenshot of a cell phone screen with text Description automatically generated

then click on Calendar.

A screenshot of a cell phone Description automatically generated

As you can see from the calendar settings Anonymous calendar sharing is enabled by default with All calendar appointment information being shared enabled.

A screenshot of a cell phone Description automatically generated

To disabled Anonymous calendar sharing, click on the slider “Allow anonymous users to access calendars with an email invitation”, by moving the slider this setting will be disabled.

Once done click on save to complete the process.

A screenshot of a social media post Description automatically generated

How to disable anonymous calendar sharing using PowerShell

To get started a connection to Office 365 should be established , once connected run the following to list the default sharing policy.

A script to connect to Office 365 can be found here on Technet

As we can see from the settings below, Anonymous calendar sharing is enabled.

A picture containing sky Description automatically generated

Run your run the cmdlet Set-SharingPolicy you will receive the following error.

A picture containing screenshot, indoor Description automatically generated

To move forward, run the following cmdlet.

A picture containing screenshot Description automatically generated

Now that we have enabled the Exchange Online organization for customization, we will now be allowed to run the Set-SharingPolicy.

To remove anonymous sharing run the following.

A picture containing object Description automatically generated

Once done, run the following to verify that anonymous is no longer listed.

You can also verify from the Office 365 admin center > settings > Calendar settings page that Anonymous has been disabled.

A screenshot of a cell phone Description automatically generated

Sharing is caring!

LEAVE A REPLY

Please enter your comment!
Please enter your name here