Description
The script can assign an application account (e.g., CRM, ERP) send-as permission to user mailboxes to send emails AS the user and not as the application.
This script loops through a membership list of an Active Directory security group. A single mailbox (CRM/ERP service account mailbox) is added to each of the security group members (CRM/ERP user mailbox) to provide send-as permission.
The script has been developed to enable proper functionality with Dynamics NAV 2016.
Examples
# Assign Send-As permission to crmapplication@varunagroup.de for all members # of 'CRM-FrontLine' security group. The mailboxes as hosted On-Premises! .\Set-SendAsPermission.ps1 -SendAsGroup 'CRM-FrontLine' -SendAsUserUpn 'crmapplication@varunagroup.de'
# Assign Send-As permission to ax@granikoslabs.eu for all members of 'AX-Sales' # security group. All mailboxes are hosted in Exchange Online! .\Set-SendAsPermission.ps1 -SendAsGroup 'AX-Sales' -SendAsUserUpn 'ax@granikoslabs.eu' -ExchangeOnline
Requirements
- Exchange Server 2016 or newer
- Exchange Online PowerShell connection
- Exchange Online PowerShell Module to connect w/ MFA
- Utilizes GlobalFunctions PowerShell Module
Version History
- 1.0, Initial community release
Links
- Download and follow at Github: https://github.com/Apoc70/Set-SendAsPermission
Follow
- Twitter @stensitzki