'How to create contact in Azure AD

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?



Solution 1:[1]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jason Johnston