best business builder

PowerShell – Setting Permissions for Office 365 using Powershell to user another users Mailbox

To configure a user to view another users mailbox, follow these steps:

 

1) This step will show you what your execution policy is on your computer. Depending on what execution policy you have will determine what scripts you can run. Theresfore, it is important that you do this step before starting so that you are sure you can actually execute the scripts you’re about to use.

 

get-executionpolicy

 

2) This step verifies that you are an administrator and will get you all the users that the administrator (that you are logging in as) is in control of, which will allow you to change their settings.

 

= Get-Credential 

 

3) This step will set the so that when you import it you will get all the scripts required from the outlook exchange server.

 

= New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential -Authentication Basic –AllowRedirection 

 

4) This step imports and the scripts that you are about to use.

 

Import-PSSession 

 

5) This step will set the permissions. “-identity” will be the persons mailbox that you want the other user to view and “-user” will be the user who you are setting the permissions. “-AccessRights” will be what the other user can view. Giving them FullAccess (like what has been done in this script) will give the other user full access to the mailbox. Remember to change the and with the respective users email addresses.

 

Add-MailboxPermission -Identity -User -AccessRights FullAccess -InheritanceType All 

 

6) This step is optional and not required, however it will confirm whether the permissions you’ve just added have been implemented.

 

Get-MailBoxPermission 

 

customer relationships

Leave a Reply

Your email address will not be published. Required fields are marked *