cancel
Showing results for 
Search instead for 
Did you mean: 

VBO - System - Active Directory - Add/Remove User

Hello Community Fam,

I'm looking for few examples how we can use the VBO - System - Active Directory to Add/Remove User to group.

Tried looking for similar threads but couldn't find relative content.

Would be helpful if I could get some insight from people who have implemented it.



------------------------------
MuraliKrishna
Senior Consultant - Wonderbotz
------------------------------
3 REPLIES 3

Hi Murali,

you need to pass the group distinguished name and user distinguished name in the below format.

Distinguished name : CN=ZZZ,OU=YYY,DC=XXX 

You can get the actual values of GroupDn and UserDn of an existing user using powershell and use that to create your GroupDn  & UserDn

24528.png

if you are trying to access the active directory which is not in your localhost then you to connect to the LDAP using username and password. Please update the code as below and pass the username & password as inputs.

Dim root As DirectoryEntry = New DirectoryEntry("LDAP://" & GroupDn, username, password, AuthenticationTypes.None)



------------------------------
Athiban Mahamathi - https://www.linkedin.com/in/athiban-mahamathi-544a008b/
Technical Consultant,
SimplifyNext,
Singapore
------------------------------

harish.m
MVP

Hi MuraliKrishna,

Hope you are doing good.

Just to add if  you are currently using roles in BP you can get OU, CN, DC from active directory group name itself.



------------------------------
-----------------------
If I answered your query. Please mark it as the "Best Answer"

Harish Mogulluri
Lead developer
America/New_York TX
------------------------------
----------------------- If I answered your query. Please mark it as the "Best Answer" [FirstName] [LastName] [Designation] [JobTitle] [City] [State] [Phone]

Hello Athiban, 

Thank you for your detailed response, I'll try it out and let you know.



------------------------------
MuraliKrishna
Senior Consultant - Wonderbotz
------------------------------