locked
Add security group to Mailbox to allow multiple users to send email with "send on behalf" permission using centralize mailbox. RRS feed

  • Question

  • I have a task to finish.

    In my place i need to create a centralize mailbox on Exchange 2010. For example, user A,B,C,D need to have access to this mailbox "MailBox2" along with them individual mailboxes in outlook 2003/2007. All four users need to have "Send on behalf" permission to send email from this mailbox too.

    So now on exchange 2010 i have created "MailBox2" and a security group "Security MailBox2". All four users have been added to this security group and this security group has been added to "MailBox2" permission. Now i can add this mailbox to all four users outlook.

    To allow "Send on behalf" permission, i have added all four users to "Mailbox2" send of behalf permission. All working fine, no problem.

    My question is what if i have more than 50 users to have such facility. It is very hard to add all 50 users to security group and 50 again to give "send on belf" permission.

    Is there any way i could add same security group "Security MailBox2" to allow "send of behalf" permission so i do not need to add all 50 users to list twice?




    Friday, October 26, 2012 8:06 PM

Answers

  • Try powershell script... it will be quite easy to do it.

    #To be modified
    $AllUsers = Get-Content "path_user_list.txt" 
    
    For Each ($user in $AllUsers){ 
    Add-ADGroupMember -Identity GroupSecurity -Member $user
    Set-Mailbox Mailbox2 -GrantSendOnBehalfTo $user
    }
    

    or you can create a distributiongroup and grant right to it.

    • Marked as answer by emma.yoyo Monday, November 5, 2012 1:47 AM
    Friday, October 26, 2012 8:34 PM
  • On Fri, 26 Oct 2012 20:34:52 +0000, Nolwen wrote:
     
    >Try powershell script... it will be quite easy to do it. #To be modified
    >$AllUsers = Get-Content "path_user_list.txt"
    >
    >For Each ($user in $AllUsers){
    >Add-ADGroupMember -Identity GroupSecurity -Member $user
    >Set-Mailbox Mailbox2 -GrantSendOnBehalfTo $user
    >}
     
     
    If you already have a distribution group populated with the required
    users you can use:
     
    get-distributiongroupmember <name> | foreach {
    Set-Mailbox Mailbox2 -GrantSendOnBehalfTo $_
    }
     
    ---
    Rich Matheisen
    MCSE+I, Exchange MVP
     

    --- Rich Matheisen MCSE+I, Exchange MVP
    • Marked as answer by emma.yoyo Monday, November 5, 2012 1:47 AM
    Friday, October 26, 2012 9:11 PM

All replies

  • Try powershell script... it will be quite easy to do it.

    #To be modified
    $AllUsers = Get-Content "path_user_list.txt" 
    
    For Each ($user in $AllUsers){ 
    Add-ADGroupMember -Identity GroupSecurity -Member $user
    Set-Mailbox Mailbox2 -GrantSendOnBehalfTo $user
    }
    

    or you can create a distributiongroup and grant right to it.

    • Marked as answer by emma.yoyo Monday, November 5, 2012 1:47 AM
    Friday, October 26, 2012 8:34 PM
  • On Fri, 26 Oct 2012 20:34:52 +0000, Nolwen wrote:
     
    >Try powershell script... it will be quite easy to do it. #To be modified
    >$AllUsers = Get-Content "path_user_list.txt"
    >
    >For Each ($user in $AllUsers){
    >Add-ADGroupMember -Identity GroupSecurity -Member $user
    >Set-Mailbox Mailbox2 -GrantSendOnBehalfTo $user
    >}
     
     
    If you already have a distribution group populated with the required
    users you can use:
     
    get-distributiongroupmember <name> | foreach {
    Set-Mailbox Mailbox2 -GrantSendOnBehalfTo $_
    }
     
    ---
    Rich Matheisen
    MCSE+I, Exchange MVP
     

    --- Rich Matheisen MCSE+I, Exchange MVP
    • Marked as answer by emma.yoyo Monday, November 5, 2012 1:47 AM
    Friday, October 26, 2012 9:11 PM
  • Hi Paurav,

    Any updates?


    Frank Wang

    TechNet Community Support

    Monday, October 29, 2012 6:10 AM