Connection string for AD

Hi Guys, i need a help.

i want to establish a connection between my uipath and my AD i want to collect data of AD and write that data to a CSV file.

Thanks

Use a custom library to connect to AD, collect users to a collection.

Intergrate custom library with Uipath and pass collection.

Thats an option, Hope it helps!