Skip to content

Language independent permission settings for AgendaX on Exchange Server 2013, 2016, 2019, Microsoft 365

Permissions that need to be set for the AgendaX account on Exchange Server 2013, 2016, 2019, and Office / Microsoft 365 are Outlook folder level permissions.
Since folder names in Outlook differ depending on the language used when the mailbox is first opened with Outlook, you’d have to know which employee uses which language to assign permissions to the correct folders. In addition to that, you’d have to know what the folders are called in these languages.

If you have mailboxes in multiple languages in your company, you can easily set the required permissions for the AgendaX account using the following script, which works for all languages.

Please make sure you replace “agendax@company.com” on the 3rd line with the name of your AgendaX account:

foreach ($Mailbox in (Get-Mailbox -ResultSize Unlimited))
{
  $AgendaXAccount = "agendax@company.com"

  $CalendarStat = Get-MailboxFolderStatistics -Identity $Mailbox -FolderScope Calendar | Where {$_.FolderType -eq "Calendar"}
  $CalendarName = "$($Mailbox.Name)" + ":\" + "$($CalendarStat.Name)"

  Write-Host "Applying permissions to mailbox: $($Mailbox.Name) (TOIS/$($CalendarStat.Name))"
 
  $AccRightTOIS = Get-MailboxFolderPermission -identity $Mailbox.Name -user $AgendaXAccount >$null 2>&1
  $AccRightCalendar = Get-MailboxFolderPermission -identity $CalendarName -user $AgendaXAccount >$null 2>&1

  If ($AccRightTOIS.AccessRights -ne "Reviewer")
  {
    Remove-MailboxFolderPermission -Identity $Mailbox.Name -User $AgendaXAccount -Confirm:$false >$null 2>&1
    Add-MailboxFolderPermission -identity $Mailbox.Name -AccessRights Reviewer -User $AgendaXAccount >$null 2>&1
  }
  If ($AccRightCalendar.AccessRights -ne "Editor")
  {
    Remove-MailboxFolderPermission -Identity $CalendarName -User $AgendaXAccount -Confirm:$false >$null 2>&1
    Add-MailboxFolderPermission -identity $CalendarName -AccessRights Editor -User $AgendaXAccount >$null 2>&1
  }
}

Just copy and paste the above script into Powershell. It will assign Reviewer rights on the top of the mailbox, as well as Editor rights on the Calendar folder.

If you don’t want to assign these rights on every mailbox in your organization, but would rather limit this to an organizational unit for example, you can modify the Get-Mailbox statement on the 1st line by adding -OrganizationalUnit with the name of the organizational unit you wish to assign permissions in.

On Office / Microsoft 365, please replace Get-Mailbox with Get-EXOMailbox.

Back To Top
Privacy Overview
AgendaX

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

3rd Party Cookies

This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.