Giter VIP home page Giter VIP logo

Comments (13)

grahamr975 avatar grahamr975 commented on May 26, 2024 1

I can't 100% vouch for this link, but looks like someone reuploaded the install here: https://github.com/gangstanthony/PowerShell/blob/master/EWSManagedAPI2.2.msi

I found it from the Reddit thread below
https://www.reddit.com/r/exchangeserver/comments/o9jy3y/looking_for_ewsmanagedapimsi/

from ews-office365-contact-sync.

grahamr975 avatar grahamr975 commented on May 26, 2024 1

@nldenic

I think you may be confused about what the Azure app does. Even if you set up an app for this script in Azure, you'll still need to install EWS API 2.2 on the host computer. If you're referring to issue #46, the purpose of the Azure app, in that case, is to circumvent the need for multi-factor authentication.

Personally, I use Windows Task Scheduler to run the script every day.

from ews-office365-contact-sync.

nldenic avatar nldenic commented on May 26, 2024

i have also unlbock de dll files. now see this error:
A constructor was not found. Cannot find an appropriate constructor for type Microsoft.Exchange.WebServices.Data.OAuthCredentials.

from ews-office365-contact-sync.

grahamr975 avatar grahamr975 commented on May 26, 2024

Did you also unblock the Microsoft.IdentityModel.Clients.ActiveDirectory.dll file? Is EWS 2.2 installed on the computer? Please refer to the getting started documentation in the README.

from ews-office365-contact-sync.

nldenic avatar nldenic commented on May 26, 2024

Dear i did unblock the dll. I don't have ews installed in my laptop 😁.
Do you have an link to download? Current link is not working.

from ews-office365-contact-sync.

nldenic avatar nldenic commented on May 26, 2024

Thank you i will check. Else i will add it like an app in Azure.

Maybe its good to do that. Maybe you can write also that in your Readme how to add as azure App.

I think most People will use it. Its just an better and good alternative for Cirasync or Galsync.

Do you also do this aƟk schedule task every week?

from ews-office365-contact-sync.

nldenic avatar nldenic commented on May 26, 2024

Thank you i will install that also and let see if thats works.

It will realy be nice if it works in azure without EWS.

Like this option https://practical365.com/prepopulating-outlook-contacts-with-the-graph-api/

Do you think your script will work with gpah api?

from ews-office365-contact-sync.

nldenic avatar nldenic commented on May 26, 2024

@grahamr975

I have now do the following steps:
Installed EWS 2.2 on my laptop
export my Exchange online admin credentials to an Cred file.
Created an bat file with following parrameters :
cd "%~dp0EWS-Office365-Contact-Sync"
PowerShell.exe -ExecutionPolicy Bypass ^
-File "C:\Users%username%\Desktop\EWS-Office365-Contact-Sync-master\EWSContactSync.ps1" ^
-CredentialPath "C:\Users%username%\Desktop\EWS-Office365-Contact-Sync-master\nldenic.cred" ^
-FolderName "TEST-Contacts" ^
-LogPath "%~dp0Logs" ^
-MailboxList [email protected] ^
-ExcludeSharedMailboxContact ^
-ExcludeContactsWithoutPhoneNumber ^
-ModernAuth ^
pause

Still gettings :
ERROR Failed to Sync-ContactList for [email protected] A constructor was not found. Cannot find an appropriate constructor for type Microsoft.Exchange.WebServices.Data.OAuthCredentials.

I have try to disable MFA for my Admin account and run it. But still not working for it.

AD Azure shows me this for my account :
image
image

Do you see other issue for this ?

from ews-office365-contact-sync.

nldenic avatar nldenic commented on May 26, 2024

@grahamr975
The problem looks solves for the normal method.

So i have delete -ModernAuth ^ and run my bat file again.

It is working. But does that means my admin account does not have mfa? Because it has mfa active 😁

In the meantime i am still gettinng error for the Azure sollution.

It will be great if you can write the Azure sollution as option.

See also my other qustion #46

from ews-office365-contact-sync.

grahamr975 avatar grahamr975 commented on May 26, 2024

@nldenic if the script works without -ModernAuth, that means basic authentication is still enabled within your environment. In order for modern auth to work, you'll need to bypass MFA for the script by trusting the IP of the server you're running the script on. See Microsoft's guide below.

https://docs.microsoft.com/en-us/azure/active-directory/authentication/howto-mfa-adfs#trusted-ips-for-federated-users

from ews-office365-contact-sync.

nldenic avatar nldenic commented on May 26, 2024

@nldenic if the script works without -ModernAuth, that means basic authentication is still enabled within your environment. In order for modern auth to work, you'll need to bypass MFA for the script by trusting the IP of the server you're running the script on. See Microsoft's guide below.

https://docs.microsoft.com/en-us/azure/active-directory/authentication/howto-mfa-adfs#trusted-ips-for-federated-users

Thats correct. For now its working on my account with basicauth. Enabled.

For now this is ok but do you think its simple to make this work with azure api connection? For my its not working yet and get error message see other issue i mention the script there.

from ews-office365-contact-sync.

grahamr975 avatar grahamr975 commented on May 26, 2024

@nldenic

If you mean changing the script to not use EWS and only using Azure (Graph API), that would require a rewrite of the majority of the script. It's in the pipeline but not coming soon, since those changes will take time to develop and test.

from ews-office365-contact-sync.

nldenic avatar nldenic commented on May 26, 2024

@grahamr975

For now its working on my on-premise server without the -ModernAuth because this is enabled. For now i am just working on it to let it work with modernauth and using certificate.

from ews-office365-contact-sync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.