Manage Mailbox Permissions by using PowerShell

Mailbox permissions PowerShell command basic structure-03



Mailbox permission includes two categories:
  1. Full Access Permissions- Enable another recipient to see all of the mailbox content.
  2. Permission to send email using another recipient name (“Send As” and “Send on Behalf” ).
Some of the Mailbox permission can be assigned by the user himself (by using the outlook or OWA interface) and the permissions to send email, using other recipient name, could only be assigned by using the PowerShell interface.
The considerable advantage of using PowerShell for managing Mailbox Permissions is that the administrator can remotely create the required setting for the user (assist users and prevent miss configurations) and using the power of the PowerShell, to execute commands in Bulk Mode (execute configuration settings for more than one Mailbox).

Mailbox permissions PowerShell commands basic structure
The basic structure of the PowerShell mailbox permissions command, is written by using the following syntax:
In our example, we want to enable Alice to get Full Access permission to hear manager mailbox. The -Identity parameter, relates to the user who wants to “share” his mailbox (provide other users the option to access the content of his mailbox) and the –User parameter, represent the user who will get the access to the mailbox.

1. Assign Mailbox Permissions


1.1 – Assign “Full Access” permissions for a Mailbox





>1.2 – Assign “Send As” Permissions for a Mailbox



Adjustments & Improvements
To avoid the need for confirmation, we can add the option: “-Confirm:$False”


>1.3 – Assign “Send As” Permissions for a ALL Mailbox’s (BulkMode)





>1.4 – Assign “Send As” Permissions for recipient for each member in a distribution group




>1.5 – Assign “Send As” Permissions for each member in a distribution group for a specific recipient





>1.6 – Assign “Send on Behalf” Permissions for a Mailbox





>1.7 – Assign “Full Access” permissions for all Mailboxes (BulkMode)






2. Assign Full Access Permissions and AutoMap


>2.1 – Assign “Full Access” permissions to Distribution Group + AutoMap



Additional reading



2.2 – Assign “Full Access” permissions for all Mailboxes (BulkMode) and Disable AutoMap





2.3 – Assign “Full Access” permissions for Specific User and Disable AutoMap







3. Display permissions for a Mailbox


3.1 – Display “Full Access” Permissions for a Mailbox



Adjustments & Improvements
For improving the quality of the output we can use an additional PowerShell parameter that will “clean” the unnecessary information:


3.3 – Display “Send As” permission for a Mailbox



Adjustments & Improvements
For improving the quality of the output we can use an additional PowerShell parameter that will “clean” the unnecessary information:


3.3 – Display “Send On Behalf” Permissions for Mailbox



Adjustments & Improvements
For improving the quality of the output we can use an additional PowerShell parameter that will “clean” the unnecessary information:


3.4 – View all “Send As permissions” you’ve configured in your organization




3.5 – Display a list of recipient’s that have FULL ACCESS permission on other recipient’s






4. Revoke Permissions


4.1 – Revoke “Full Access” Permissions



Adjustments & Improvements
To avoid the need for confirmation, we can add the option: “-Confirm:$False”


4.2 – Revoke “Send As” Permissions



Adjustments & Improvements
To avoid the need for confirmation, we can add the option: “-Confirm:$False”

PowerShell

Remove-RecipientPermission John -AccessRights SendAs -Trustee Suzan -Confirm:$False

Commenti

Post popolari in questo blog

Come e quando smantellare i server Exchange in una distribuzione ibrida

Manage Room Mailbox by using PowerShell

How to reset an Office 365 install to the initial activation/install state