Skip to content

Instantly share code, notes, and snippets.

@Trimad
Created November 18, 2022 13:14
Show Gist options
  • Save Trimad/aad5fb9449d182b4a712be9d95acf5e5 to your computer and use it in GitHub Desktop.
Save Trimad/aad5fb9449d182b4a712be9d95acf5e5 to your computer and use it in GitHub Desktop.
Calendar Permissions
# Hunt for the owner of the mailbox:
Get-MailboxFolderStatistics "theuser@domain.com" | ft Name, Identity, folderpath, foldertype > folderstats.txt
# Using the name of the mailbox owner, get the CalendarSharingOwnerSmtpAddress and SharingOwnerRemoteFolderId properties:
Get-MailboxFolderStatistics -Identity "theuser" | ForEach-Object {
If ($_.FolderPath -match "/Calendar/Advisory Team Calendar"){ # Example calendar, needs to be changed
$FolderIdentity = ($_.Identity).Replace('\Calendar\', ':\Calendar\')
Get-MailboxCalendarFolder -Identity $FolderIdentity | Select CalendarSharingOwnerSmtpAddress, SharingOwnerRemoteFolderId
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment