Creating a shared mailbox is an easy operation, but setting up SendAs permissions is a bit tricky.
The following article will describe all the steps for creating a shared mailbox (SM) with the right permissions.
How it’s done ?
- in Exchange Control Panel (ECP) we must create a new Distribution Group (DG).
- Display Name: Technical Support;
- Alias: supportgroup;
- this DG must be a Security Group;
- Delivery Management: ;
- add the desired members;
- other minor adjustments.
Now, we must use PowerShell to connect to the Exchange account and to create the SM.
- Connect to Exchange using PS:
#———————————————————————————
# Author: Alexandru Dionisie
# Website: www.tutorialeoffice.ro
# Script Name: Sesiune_Noua.ps1
#———————————————————————————
#
#
# 1.Ask credentials for authentication
$LiveCred = Get-Credential
# 2.Open a new session
$AlexD = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
# 3.Join the session
Import-PSSession $AlexD
- Create SM using PS, give Full Access and SendAs permissions:
# In ECP or EMC create a new DG .
# The DH must be security enabled or a security group.
#
# Provide the following informations:
# DG display name – Technical Support
# DG alias – supportgroup
#–––––––––––––––––––––––––––
# Author: Alexandru Dionisie
# Website: www.tutorialeoffice.ro
# Script Name: Shared_Mailbox.ps1
#–––––––––––––––––––––––––––
#
#
# Create Shared Mailbox
#
# 1. Create mailbox and add alias
# Customer Support – display name for Shared Mailbox
# support – alias (must be unique)
New-Mailbox -Name „Customer Support” -Alias support -Shared
#
# 2. Give Full Access to security group (DG alias – supportgroup) to the shared mailbox
# Customer Support – display name
# supportgroup – DG alias
Add-MailboxPermission „Customer Support” -User supportgroup -AccessRights FullAccess
#
#
# Give SendAs permissions to DG members
#
# Customer Support – display name
# supportgroup – DG alias
Add-RecipientPermission „Customer Support” -Trustee supportgroup -AccessRights SendAs
Now, the permissions are set and users can use the SendAs feature to send E-mail as the SM.
Download PS Script:
Shared_Mailbox.ps1 |
Copy from TechNet: Create Shared Mailbox and assign SendAs in Exchange Online 2010