Created
October 28, 2022 11:02
-
-
Save Fantasillion/4a22c7948fb8fa8a509d00f9eb1dd49f to your computer and use it in GitHub Desktop.
Office 365 Exchange Online access rights on Calendars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Note that the language chosen upon first login decides the naming used for the mailbox calendar. | |
#Change default rights Danish calendar: | |
foreach($user in Get-Mailbox -RecipientTypeDetails UserMailbox) { | |
$cal = $user.alias+":\Kalender" | |
Set-MailboxFolderPermission -Identity $cal -User Default -AccessRights LimitedDetails | |
} | |
#Change default rights English calendar: | |
foreach($user in Get-Mailbox -RecipientTypeDetails UserMailbox) { | |
$cal = $user.alias+":\Calendar" | |
Set-MailboxFolderPermission -Identity $cal -User Default -AccessRights LimitedDetails | |
} | |
#Set on specific user Danish: | |
Set-MailboxFolderPermission -Identity initials@domain.com:\Kalender -User Default -AccessRights LimitedDetails | |
#Set on specific user English: | |
Set-MailboxFolderPermission -Identity initials@domain.com:\Calendar -User Default -AccessRights LimitedDetails | |
#Check default rights for specific user Danish: | |
Get-MailboxFolderPermission -Identity initials@domain.com:\Kalender | Sort-Object User, AccessRights | Format-Table User, AccessRights, Identity, FolderName, IsValid -AutoSize | |
#Check default rights for specific user English: | |
Get-MailboxFolderPermission -Identity initials@domain.com:\Calendar | Sort-Object User, AccessRights | Format-Table User, AccessRights, Identity, FolderName, IsValid -AutoSize |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment