Azure AD connector


We are trying to connect to Azure AD through out of the box connector in sync project. We provided AppID, domain and the user account credentials.

But we are getting the error [Microsoft.IdentityModel.Clients.ActiveDirector.AdalServiceException]: Accessing ws metadata exchange failed.

[System.Net.WebException]: The remote server returned an error.(403) Forbidden.

We used the same account to connect to azure using powershell commands and it worked.

Could anyone let us know what are we missing here.