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
98 stars 21 forks source link

FolderName #57

Open michaldejmek opened 2 years ago

michaldejmek commented 2 years ago

I can't create a folder for contacts :(

VERBOSE: Using EWS dll from Local Directory VERBOSE: Using Negotiate Auth Using CAS Server : https://outlook.office365.com/EWS/Exchange.asmx VERBOSE: Microsoft.Exchange.WebServices.Data.ExchangeService.AutodiscoverUrl VERBOSE: Microsoft.Exchange.WebServices.Data.ExchangeService.url VERBOSE: Microsoft.Exchange.WebServices.Data.ExchangeService.url VERBOSE: GAL not found, attempting to create now... FATAL Failed verify that GAL exists for tester@domain.onmicrosoft.com Exception calling "Save" with "1" argument(s): "The request failed. The remote server returned an error: (401) Unauthorized." ERROR Failed to Sync-ContactList for tester@domain.onmicrosoft.com Failed verify that GAL exists for tester@domain.onmicrosoft.com

grahamr975 commented 1 year ago

Hello,

It looks like the account/app you're using does not have permission for EWS application impersonation. Please consult the README for how to set this up.