Monthly Archives: August 2014

No Import Contacts to Office 365 OWA Shared-Mailbox — Use Powershell

I was wanting to import a CSV file of contacts into the contacts folder of a Shared Mailbox and using OWA (Outlook Web App) to do so. Normally one goes to wheel->Import-Contacts, supply the file name, and success…

OWA Import-Contacts menu     OWA Import-Contact window

In OWA it’s possible to open a Shared Mailbox if you have the rights to do so (use the menu with your name and select “Open another mailbox…”). However if you try this it fails with a 403 error. Shame.

OWA Import-Contact fails if opened Shared Mailbox
(Failing URL is

Of course PowerShell comes to the rescue. Office 365 has a cmdlet Import-ContactList (help). Connect PowerShell to Office 365 in the normal way and call that cmdlet specifying the user to import to and the CSV and it does the job.

PS C:\temp> Import-ContactList -Identity -CSV -CSVData ([System.IO.File]::ReadAllBytes(‘Antony_no_groups.csv’)) -Verbose
VERBOSE: Importing contacts to mailbox “”.RunspaceId       : bdf8902b-e858-44ba-a8ee-368fc809f6c2
ContactsImported : 136
Identity         : tmp-contact-import1
IsValid          : True
ObjectState      : New

PS C:\temp>

The Contact folder for the Shared Mailbox is now full:

OWA contacts

Leave a comment

Posted by on August 7, 2014 in Office 365