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 to fetch Global Address List Contacts from Office 365 Directory #70

Open AisaacOcean opened 1 year ago

AisaacOcean commented 1 year ago

Hi, I am also running it for a single user and I get the same problem.

Why is this error occurring?

image

BRM-SMS commented 1 year ago
grahamr975 commented 1 year ago

Hello,

Can you please confirm that you're using ExchangeOnlineManagement version 2.0.5?

Thanks

BRM-SMS commented 1 year ago

Hello,

Can you please confirm that you're using ExchangeOnlineManagement version 2.0.5?

Thanks

i just checked, im using 2.0.5 few weeks ago, it worked fine. guess microsoft did change something....again

AisaacOcean commented 1 year ago

Hi @BRM-SMS @grahamr975 we are currently using version 3.0.0, should I use version 2.5.0?

Thanks

AisaacOcean commented 1 year ago

Hello, I have changed to version 2.0.5, but it still gives the same error. But now in the logs the error is specified a little more Attached image

grahamr975 commented 1 year ago

You need to create an Azure app & provide an app ID to the script. Please read over the README file on the main page of this repo.

BRM-SMS commented 1 year ago

You need to create an Azure app & provide an app ID to the script. Please read over the README file on the main page of this repo.

Thanks ryan, i will give this a try

BRM-SMS commented 1 year ago

i set it up all new with certificate and azure app, now its working again, thanks!

AisaacOcean commented 1 year ago

Hello, we have tried to configure the certificate and the app.

Even so it is still failing, where can the problem come from?

AisaacOcean commented 1 year ago

Hello, I have changed to version 2.0.5, but it still gives the same error.

We have again configured the certificate and the app.

Thanks

criss748 commented 1 year ago

Hi I had the same error because we had shortened the path for CertificatePath and CertificatePasswordPath, like ".\automation-cert.pfx". But the full path to the file must be provided !