Create User in AD with extensionAttributes set

Edwin Fuller
Tera Guru

I've copied the "ActionCreateUser_AD_v2.ps1" to include other fields as per my organizations requirements; See attached file. It works fine until I try to include extensionAttributes4 where it fails with the message of

 

"A parameter cannot be found that matches parameter name 'extensionAttribute4'"

 

Part of script that is attempting to set extensionAttribute4

 

If($BusinessUnit){
$params['extensionAttribute4'] = $BusinessUnit
}

 

Please help me with the correct way to set extensionAttributes when creating new users in AD

 

 

 

1 REPLY 1