In my last post I talked about how you could set up sharing free/busy information between two Live@edu environments but what about sharing your whole calendar with someone? When you click share in the calendar screen, by default, the options to publish the calendar to the Internet are greyed out. In this post I’ll show you how you can enable that, and limit the ability to only a subset of your users.
The end result being that you could enable this feature for your staff, and not for your students. This would allow members of staff in different schools to share their calendars with each other but would keep student calendars private. Cool, eh?
As with many of the advanced features of Live@edu, we turn to PowerShell to make this happen. You need to connect to your tenant as an administrator in order to perform these configuration changes. To find out more about connecting to your tenant, take a look at the guide on Outlook Live Help.
Once connected, you’ll need to run the following command:
This isn’t always necessary, but in the Microsoft datacentres, certain objects are consolidated to save space. When you try to use Windows PowerShell to modify one of these objects for the first time, you may encounter the error message that tells you to run the Enable-OrganizationCustomization cmdlet. More information is available in the corresponding tech article on Outlook Live Help.
Next, we need to create a new sharing policy to use specifically with a different group of users. To create the new policy, run the following command:
New-SharingPolicy -Name "Calendar Sharing Policy" -Domains "anonymous:calendarsharingfreebusysimple"
This should return something similar to:
Next step is to apply this to a user – to do this to an individual, you can do:
set-mailbox <mailbox> -SharingPolicy "Calendar Sharing Policy"
You can review the sharing policy for a mailbox:
get-mailbox <mailbox> | Select-Object SharingPolicy
If you log in to Outlook Live as one of the users you’ve applied the change to you should now see that you can change the publishing settings for the calendar:
By selecting “Publish This Calendar to Internet” you can alter the publishing settings:
It is possible to write a simple PowerShell script that will apply this sharing policy to a number of users, making it easy to roll this out to your staff but keeping student calendars private.
Good article. What are the options to show a detailed calendar?
As far as I know this only covers free/busy. Likewise with federated delegation. The corresponding TechNet article (technet.microsoft.com/.../ff607475.aspx) only talks about sharing free/busy information, too.
For detailed calendar sharing via URL try to set following policy:
New-SharingPolicy -Name "Calendar Sharing Policy" -Domains "anonymous:CalendarSharingFreeBusyReviewer"
It is working for me.
This isn't working for me. When I try to set the sharing policy using Set-Mailbox I receive an error with the code -2146233088, "The user and the mailbox are in different Active Directory sites...". Any ideas how I can solve this problem?
I get the same error as Steve when I try to apply the sharing policy to a user:
Error code -2146233088 occurred with message The user and the mailbox are in different Active Directory sites..