Can we use LDAP client to connect to Azure AD?

Grzegorz Blach 21 Reputation points

Hello all,

We use LDAP client (python-ldap) to connect to Active Directory hosted on a server in the local network. Our script retrieves a list of all users from the server. Now we need to perform the same task in Azure AD.

Can we use LDAP client to connect to Azure AD too?
If yes, how to do it?
If no, is there another way to retrieve a list of all users from Azure AD?


Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,846 questions
0 comments No comments
{count} votes

Accepted answer
  1. SAGOHIL-MSFT 456 Reputation points Microsoft Employee

    Hi @Grzegorz Blach Thank you for reaching out.

    I have reviewed the query and I understand that, you'd like to know how can we connect to Azure AD using LDAP. We can surely do that by using Azure Active Directory Domain Services.

    Please review the below article for reference.


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

0 additional answers

Sort by: Most helpful