This script creates a Marketing shared mailbox and assigns three permission tiers: 10 users with read-only, 10 with “Send As,” and one owner with full access. Great for controlled collaboration environments.
# Create Shared Mailbox
New-Mailbox -Name "Marketing Shared" -Shared -PrimarySmtpAddress "[email protected]"
# Assign Read-Only Access (View Only - use mailbox folder permissions)
$readUsers = @("[email protected]", "[email protected]", "[email protected]")
foreach ($user in $readUsers) {
Add-MailboxFolderPermission -Identity "[email protected]:\Inbox" -User $user -AccessRights Reviewer
}
# Assign Send As permissions
$sendAsUsers = @("[email protected]", "[email protected]", "[email protected]")
foreach ($user in $sendAsUsers) {
Add-ADPermission -Identity "Marketing Shared" -User $user -ExtendedRights "Send As"
}
# Assign Full Access to Owner
Add-MailboxPermission -Identity "[email protected]" -User "[email protected]" -AccessRights FullAccess -InheritanceType All
Run this after connecting to Exchange Online. Mailbox folder permissions are used for read-only access.
© 2012–2025 Jet Mariano. All rights reserved.
For usage terms, please see the Legal Disclaimer.