Forum Discussion
Kiril
Mar 25, 2021Steel Contributor
Add contacts to all mailbox folder in Exchange Online
I want to add a contact to all contact mailbox folders on our Exchange. How should I proceed?
Use case is: we have a few emergency contacts in our organization and we want that every employee has that contact. So, I need to add the emergency contacts somehow to all contact folders in Outlook of all our employees.
- Use the corresponding Graph endpoint: https://docs.microsoft.com/en-us/graph/api/user-post-contacts?view=graph-rest-1.0&tabs=http
Or use something pre-built: https://github.com/gscales/Exch-Rest
- You will need a Graph API or EWS-based solution. Here's one PowerShell module that uses EWS: https://github.com/gscales/Powershell-Scripts/tree/master/EWSContacts
- KirilSteel ContributorThank you! How could I do it using the Graph API?
- Use the corresponding Graph endpoint: https://docs.microsoft.com/en-us/graph/api/user-post-contacts?view=graph-rest-1.0&tabs=http
Or use something pre-built: https://github.com/gscales/Exch-Rest