Hi ,
it is possibile to create a workflow that request for 2 input parameter (first and last name)
and recall a powershell script to clone a AD user setting this 2 (and other) parameter?
for example :
name Marco
last name: rossi
clone user "generico" setting name to "Marco" , last name to " rossi"
email to "m.rossi@email.com"
set a default password (and mark "change password at net logon")
thank you
Luca
Hi,
I think you can use the AD plugin for this.
You can query for the different attributes the template user has, and set the attributes to the new user.
So, you can create a workflow that:
var atts = templateuser.allAttributes;
for each (var att in atts)
{
switch (att.name)
{
case "atributename1":
NewUser.setAttribute(att.name , templateuser.getAttribute(att.name))
break;
case "atributename2":
NewUser.setAttribute(att.name , templateuser.getAttribute(att.name))
break;
}}
Regards,
Leandro.
Hi ,
thank you for your reply ,
so it is possibile to give to the PS script the user created in the 1st step of the workflow?
the the PS script i just need to substitute "templateuser" with my template name?