Update Exchange Online Room resource calendars to display event names with PowerShell
Recently, I received a request to update the visibility of events of a Room Resource in Exchange Online.
The user reported that they could only see the “Free” or “Busy” for all events on the calendar and they wanted to see the event name instead.
Microsoft currently does not have an ability to change the visibility of events on a Room Resource calendar through the Exchange Online Admin Center.
To change this setting, I needed to use PowerShell to update the visibility, but there was a second command I needed to run to display the event name instead of the user who scheduled the event (organizer).
To perform these steps, you will need the Exchange Administrator role assigned to your account in Entra ID.
Here are the steps to update the visibility of events on a Room Resource calendar in Exchange Online using PowerShell:
Open a new PowerShell session and run these commands, changing the $mailboxAddress variable to the email address of the Room Resource you want to update:
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline
$mailboxAddress = 'XXXXXX@example.com'
$accessRights = 'LimitedDetails' # Valid options: 'AvailabilityOnly' (Free/Busy), 'LimitedDetails' (More info)
$folderPath = (Get-EXOMailboxFolderStatistics -Identity $mailboxAddress | Where {$_.Foldertype -eq "Calendar"} | Select-Object -ExpandProperty FolderPath).Replace("/","\")
Set-MailboxFolderPermission -Identity "${mailboxAddress}:${folderPath}" -user "Default" -AccessRights $accessRights
Set-CalendarProcessing -Identity <RESOURCEMAILBOX> -DeleteSubject $False -AddOrganizerToSubject $False
Unfortunately, this will not change events that have already been scheduled, but all future events will display the event name instead of just Free/Busy.
After making this change, Exchange Online may need some time to sync with your Outlook app, so check in about 30 minutes to make sure the change took effect.
References
- https://serverfault.com/questions/1164168/in-exchange-365-how-to-change-the-visibility-of-events-in-shared-calendars/1164169
- https://learn.microsoft.com/en-us/powershell/module/exchangepowershell/set-mailboxfolderpermission?view=exchange-ps#-accessrights
- https://learn.microsoft.com/en-us/troubleshoot/exchange/client-connectivity/calendar-shows-organizer-name