Assign Permissions to Distribution Group and Linked Shared Mailbox

This script adds members to an existing Distribution Group and grants them appropriate permissions on a related shared mailbox (like “Send As” and “Full Access”). Useful when a team manages both a DL and its mailbox.

# Add members to Distribution Group
$members = @("[email protected]", "[email protected]", "[email protected]")
foreach ($m in $members) {
    Add-DistributionGroupMember -Identity "Sales Team" -Member $m
}

# Assign Send As & Full Access to all DG members (loop through)
foreach ($m in $members) {
    Add-MailboxPermission -Identity "[email protected]" -User $m -AccessRights FullAccess -InheritanceType All
    Add-ADPermission -Identity "Sales Team" -User $m -ExtendedRights "Send As"
}

Great for use in tightly aligned teams with shared inbox responsibility.

🔗 View on GitHub

© 2012–2025 Jet Mariano. All rights reserved.

For usage terms, please see the Legal Disclaimer.

error: Content is protected !!