Hello there, my name is Ben and today I will talking you through how to set a user’s permissions on office 365 using powershell. I shall be talking you through the steps to configure the permissions of an office 365 user to view 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.
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.
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.
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
6) This step is optional and not required, however it will confirm whether the permissions you've just added have been implemented.
Thank you for reading this blog. I hope it has helped you with allowing an office 365 user to view anothers mailbox.