Reputation: 21
I need to create contacts programmatically so that it would appear in the Global Address List of Exchange Online user. It is my understanding that those contacts are Azure AD contacts, but Graph REST API only supports getting contacts: https://msdn.microsoft.com/en-us/library/azure/dn151612.aspx.
I already asked on Azure AD forum and was told there's no functionality to add/update contacts.
Is there any other way to create a contact so that it would appear in the Global Address List?
Upvotes: 0
Views: 14206
Reputation: 17702
To be clear, personal contacts (stored in a user's mailbox) are completely separate from Global Address Contacts (stored in the Active Directory in on-premise Exchange setups, Azure AD in Office 365). Since Graph API doesn't support creating them, to actually create GAL contacts you would have to use PowerShell. The New-MailContact cmdlet should do the trick.
Upvotes: 0