Link to home
Start Free TrialLog in
Avatar of visioneeringinc
visioneeringinc

asked on

Grant Send As permissions to a user for all users in a group

I am attempting to grant access for our server that processes emails with large attachments send as permissions for all users, I am looking for a better way to do this than going to each mailbox and granting the account send as permissions and having to continue to do that for new users.  I've tried adding send as permission on the domain users group through active directory users and computers to no avail.
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

If you are using an actual server to send out emails wouldn't you just want to setup a "receive connector" with " anonymous send access?

You can also use the below code to do this via powershell. The CSV file needs to be constructed with Headings Mailbox and sAMAccountName. Add the Mailbox name of every user under the Mailbox heading and add the user account you want to grant access to beside each mailbox name under the sAMAccountName heading.

#Import the Active Directory Module
Import-Module activedirectory
#
#Create a variable for the CSV file import
$Access = Import-Csv "c:\CSV Files\YourCSVFileHere.csv"
#
#Using the variable this will read the CSV file and modify the Active Directory permission based on the headers in the CSV file
$Access = foreach ($ADPerm in $Access) {
$ADPerm.Mailboxes
$ADPerm.SAMAccountName
#
#Powershell command using the variable and headers to modify all of the "Send As" Active Directory permissions
Add-ADPermission -Identity $ADPerm.Mailboxes -User $ADPerm.SAMAccountName -Accessrights extendedright -ExtendedRights "send as"
}

Open in new window



Thanks


Will.
Run following command to give Send As permission to Single User on all mailboxes:
 
Get-Mailbox | Add-Adpermission -User <UserName> -ExtendedRights "Send As"

For send as on group please check link from http://exchangeserverpro.com

http://exchangeserverpro.com/exchange-2010-send-as-permissions-distribution-group/
Avatar of visioneeringinc
visioneeringinc

ASKER

This is the way it works:
-User creates email with an attachment
-If the attachment is over the designated size the outlook add-in captures the email
-The server then sends a new email in its place with a link and password to download the attachment

The problem is obviously that it doesn't have permission to send as the user that sent the original email

Running either of those commands will fix the problem but I would prefer a solution that doesn't require me to re-run it every time I add a new user (if the capability exists).
ASKER CERTIFIED SOLUTION
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That worked perfectly thanks!!