{"id":32969,"date":"2022-10-12T19:20:33","date_gmt":"2022-10-12T19:20:33","guid":{"rendered":"http:\/\/activedirectorypro.com\/?p=32969"},"modified":"2022-10-13T10:09:38","modified_gmt":"2022-10-13T10:09:38","slug":"send-on-behalf-permissions-with-powershell","status":"publish","type":"post","link":"https:\/\/activedirectorypro.com\/send-on-behalf-permissions-with-powershell\/","title":{"rendered":"Manage Send on Behalf Permissions With Powershell"},"content":{"rendered":"\n
This is a guide to managing send on behalf and send as permissions with PowerShell in Office 365. <\/p>\n\n\n\n
In this guide you’ll learn: <\/p>\n\n\n\n
Tip #1<\/strong> – A user delegated Send As permission<\/strong> is not allowed to open a mailbox to read the emails. It only allows the delegate given Send As permission to send emails as if they were the owner of that mailbox. The recipient of the email will not see a difference between the owner of the mailbox and the user that has been delegated to Send As the owner of the mailbox. <\/p>\n\n\n\n Tip #2<\/strong> – A user delegated Send on Behalf permission<\/strong> is not allowed to open a mailbox to read the emails. It only allows the delegate given Send on Behalf permission to send emails on behalf of the owner of the mailbox. The recipient of the email will see a message Sent on Behalf of in the sender address. Refer to the article grant full office 365 mailbox permissions<\/a> if you want the delegate to open the mailbox with full permissions. <\/p>\n\n\n\n Prerequisites: <\/strong>Minimum Office 365 Admin Role(s) needed to accomplish this task: Exchange Recipient Administrator<\/p>\n\n<\/div><\/div>\n\n\n Step 1:<\/strong> Connect to Exchange Online<\/p>\n\n\n\n Refer to the article Connect to exchange online with Powershell<\/a> if you need steps on how to connect. <\/p>\n\n\n\n Step 2:<\/strong> Use the Set-Mailbox cmdlet<\/p>\n\n\n\n We will use the Set-Mailbox<\/strong> cmdlet to give Send on Behalf permissions. In the example below, we give the user \u2018123 User\u2019 Send on Behalf permissions to the mailbox \u2018ABC User\u2019.<\/p>\n\n\n\n To verify send on half permissions, you can use the Get-Mailbox<\/strong> cmdlet to view permissions. In the example below, we check the Send on Behalf permissions on the mailbox \u2018ABC User\u2019.<\/p>\n\n\n\n Step 1:<\/strong> Connect to Exchange Online<\/p>\n\n\n\n Refer to the article Connect to exchange online with Powershell<\/a> if you need steps on how to connect. <\/p>\n\n\n\n Step 2:<\/strong> Use Add-RecipientPermission<\/p>\n\n\n\n We will use the Add-RecipientPermission<\/strong> cmdlet to give Send As permissions. In the example below, we give the user \u2018123 User\u2019 Send As permissions to the mailbox \u2018ABC User\u2019.<\/p>\n\n\n\n To verify the permissions, you can run the Get-RecipientPermission<\/strong> cmdlet to view permissions on the mailbox. In the example below, we check permissions on the mailbox \u2018ABC User\u2019.<\/p>\n\n\n\n In my opinion, managing users mailbox permissions is much easier and faster with PowerShell. With the admin portal, it takes several clicks to accomplish what I covered in this guide. <\/p>\n\n\n\n Post your questions or comments below. <\/p>\n","protected":false},"excerpt":{"rendered":" This is a guide to managing send on behalf and send as permissions with PowerShell in Office 365. In this guide you’ll learn: Give Send on Behalf Permissions With PowerShell Get Send on Behalf Permissions with PowerShell Give Send As Permissions with PowerShell Get Send As Permissions with PowerShell Tip #1 – A user delegated … Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":32978,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1822],"tags":[],"_links":{"self":[{"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/posts\/32969"}],"collection":[{"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/comments?post=32969"}],"version-history":[{"count":3,"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/posts\/32969\/revisions"}],"predecessor-version":[{"id":32982,"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/posts\/32969\/revisions\/32982"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/media\/32978"}],"wp:attachment":[{"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/media?parent=32969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/categories?post=32969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/tags?post=32969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}Give Send on Behalf Permissions With PowerShell <\/h2>\n\n\n\n
Set-Mailbox -Identity 'ABC User' -GrantSendonBehalfTo '123 User'<\/code><\/pre>\n\n\n\n
<\/figure>\n\n\n\n
Get Send on Behalf Permissions with PowerShell<\/h2>\n\n\n\n
Get-Mailbox -Identity 'ABC User' | Format-List GrantSendonBehalfTo<\/code><\/pre>\n\n\n\n
<\/figure>\n\n\n\n
Give Send As Permissions with PowerShell<\/h2>\n\n\n\n
Add-RecipientPermission \"ABC User\" -AccessRights SendAs -Trustee \"123 User\"<\/code><\/pre>\n\n\n\n
<\/figure>\n\n\n\n
Get Send As Permissions with PowerShell<\/h2>\n\n\n\n
Get-RecipientPermission \"ABC User\"<\/code><\/pre>\n\n\n\n
<\/figure>\n\n\n\n