Workflow Soluiton

 View Only
  • 1.  Clone AD user component???

    Posted Jan 20, 2011 01:22 PM

    Hello All

    I am creating an AD Workflow that will create a user. I have looked at the AD videos on  www.workflowswat.com and using most of those. The request I have is to create a user from an existing user in AD. I have setup the workflow to ask for the name of the user to clone from and then I get the user to enter the new information such as first name, last name, etc for the new user, then I map the clone user info to the new user info and all works fine. The 2 things I am having some problem with is getting the new user to be created in the same OU as the clone user, right now the new user is added to the default Users OU and the other thing that I can have problems with is to get all the clone user group memberships to the new user.  and      

    Any ideas on how to get this done?

    Thanks

    Richard

     



  • 2.  RE: Clone AD user component???
    Best Answer

    Posted Jan 25, 2011 01:23 PM

    Hi Richard,

     

    For the OU, you can use the DN of the user you are cloning from. You can strip out everyting between the CN=Name, and the OU=, then strip the DC= domain portion. This should leave you with just the OU= information.

     

    In the Create user, Specify the Container and use the value you just created.

     

    As for the groups, you can Get Groups For User to get the groups from the original user, then do a FOR EACH ELEMENT  and Add User To Group.

     

    Not very elegant, but it should work..

    rob



  • 3.  RE: Clone AD user component???

    Posted Jan 25, 2011 04:59 PM

    That worked perfectly.

    Thanks Rob