Your question is not entirely clear, but if you are wondering how you can access and manipulate Active Directory (or any other LDAP resource for that matter) you can use the javax.naming.directory to do this. There's a
tutorial available provided by sun to help you get started.