108
Views
10
Comments
Get List of Users in Active Directory

i want to get list of users in Active Directory  and put them inside drop down list 

UserImage.jpg
Omar AbdElhadi

list of the users that exist into my domain

2022-08-03 04-32-50
Ravi Punjwani

Hi Omar,

Is it the only requirement in your use case, that you want to list the users in a dropdown? Or you want to achieve something further using the selected item from the dropdown?

Are you planning to use any further operations on your Active Directory?

Do you currently have anything pre-setup on your environment to access the Active Directory? Authentication etc.?

A solution to your query can differ from what you want to achieve, and what you currently have in place.

UserImage.jpg
Omar AbdElhadi

i want to let user login by active directory credentails , and only list all AD users in drop down

UserImage.jpg
Omar AbdElhadi

i already configure authentication to use LDAP

UserImage.jpg
Omar AbdElhadi

how to login by my windows credentails while i configure LDAP correctly !
and get list of users from the LDAP

2019-09-24 18-41-25
Jorge Martins
 
MVP

You can configure the built-in Users authentication to use Active Directory directly, instead of using LDAP.

But in order to access the AD users list you will need to use a completely separate component like Active Directory Library or the Active Directory CORE (Simplified) component built on top of it.

Hope this helps!

UserImage.jpg
Omar AbdElhadi


Can i used it with providing the USER name and password since i am in the domain and already define the LDAP settings ???



2019-09-24 18-41-25
Jorge Martins
 
MVP

As far as I can tell you will have to provide those credentials directly to the library, it doesn't have access to the ones used by the logged in user.

But since this library runs Server-Side, you can safely store a set of credentials that allows read access to the users list in, for instance, site properties.

UserImage.jpg
Omar AbdElhadi

could you give me example on the path of the domain : Path of the domain + DN in the AD

is this : ldaps://domain:port/OU=value,DC=value,DC=value,DC=value

UserImage.jpg
Omar AbdElhadi
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.