Attaching mailboxes on Outlook with Office365
On todays post. i´ll explain how to attach Office365 mailboxes inside Microsoft Outlook, either if they´re shared or personal.
For most, the easiest way to do so is using Microsoft Outlook interface, perhaps this results tedious when doing it on many users and is also unefficient because it gives the user the right to remove it without any permission.
To do so, it´s necessary to have our environment ready for Office365 administration with PowerShell and log in with admin credentials with the following code:
$LiveCred = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection Import-PSSession $Session
Once inside, run the following command (note the Automapping parameter):
Add-MailboxPermission -Identity shared_mailbox@domain.com -User user@domain.com -AccessRights FullAccess -AutoMapping:$true
And we´ll get the following results:
This way, when we Access Microsoft Outlook, we´ll get the attached mailbox below our personal :
Also, note that when accesing the Microsoft Exchange account properties inside Outlook, we will not see any additional mailboxes listed we could remove:
To remove an attached mailbox, simply run the following command:
Remove-MailboxPermission -Identity shared_mailbox@domain.com -User user@domain.com -AccessRights FullAccess
Until next post.