72
Views
2
Comments
Solved
[Active Directory] how to get the specific OU users
Question
active-directory
Web icon
Forge asset by Renato Pauleta

In the ADConfiguration, may i get users under specified OU? 

I have tried to define the Domain to be 

         OU=XX, DC=domain, DC=com, DC=HK (not work)

         xx.domain.com.hk (not work)

Any ideas?

Also, what usage of 'Container' in the ADConfiguration?

2024-09-14 05-42-00
Ozan Can Çalı
Champion
Solution

Hi Jessica,

It's a late response but I hope it helps. 

An Organizational Unit (OU) is also a Container object, so in that sense maybe you should pass the OU path as Container.

In my project, I needed to connect to the local ActiveDirectory of a client. I started with the AD component as well, but then switched to the LDAP Forge component as it provided better flexibility and ease of use. I recommend it if you are able to use it in your project.

I use the Search action of that component. It might need some customization to fit your needs, but it should work out-of-the-box. And it doesn't take Container as input parameter; just username, password and path for the server.

The path should look something like this: [LDAP Server Path + OU Path]

ldap://machinename.company.local:389/OU=Users,OU=AnotherOrgUnit,DC=CompanyName,DC=local

UserImage.jpg
Jessica Lee

Thank Ozan.

Let me try to use LDAP.


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