grahamr975 / EWS-Office365-Contact-Sync

Uses Exchange Web Services to synchronize a Global Address List in Office 365 to a user's mailbox
MIT License
94 stars 21 forks source link

Failed verify that Directory Contacts exists #91

Open Jmccormick9 opened 10 months ago

Jmccormick9 commented 10 months ago

I received an error saying Failed verify that Directory Contacts exists for user.onmicrosoft.com. Exception calling "Save" with "1" argument(s): "The request failed. The remote server returned an error: (403) Forbidden." ERROR Failed to Sync-ContactList for user.onmicrosoft.com Failed verify that Directory Contacts exists for user.onmicrosoft.com

Please advise

razadorX7 commented 10 months ago

same error for me

razadorX7 commented 10 months ago

It works for me now. I have recreated the app in Azure. I noticed that the permissions did not match. Here were still the permissions from the screenshot of the tutorial in it. "full_access_as_app" was missing. I also entered the domain incorrectly when creating the certificate. I have not specified the onmicrosoft.com, but the normal domain. Don't know what of those was the error.