Instructions on adding full access permissions for an administrator to a user’s mailbox without the automapping feature, which causes delegate mailboxes to automatically download a cached store on your local computer
Before you get started, make sure and turn off multi-factor authentication in Azure if you are using it. Office365 won’t let you connect via command line with an app password.
- Open Powershell in Windows
- Run this command: Set-ExecutionPolicy RemoteSigned
- Run this command: $UserCredential = Get-Credential
- Type in your email address and password (assuming you are an administrator)
- Run this command: $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
- Run this command: Import-PSSession $Session
- Run this command, replacing the user accounts and email addresses with your own and the user you are modifying: Add-MailboxPermission -Identity douglas.adams@vogon.com -User admin.user -AccessRights FullAccess -AutoMapping:$false
- It should look like this after running the command:
- To view existing permission, run this command: Get-RecipientPermission douglas.adams
- To remove permissions, run this command: Remove-MailboxPermission douglas.adams -User admin.user -AccessRights FullAccess -Confirm:$False
- When finished run this command: Remove-PSSession $Session