This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ARS user rename

Hi All,

how can i rename user object(name) in ars?

for e.g. if department equal to sales it should move to sales ou, have i configured workflow for that. but, before moving to sales ou it should search for name whether already present or not, if present then it should add 1 at the end of name else keep it as it is. 

also, while creation from QC, if two new users will get create in provisioning cycle with same name it should add 1 at the end of the name.

Can anyone help in this?

Parents
  • I've not checked this but the $request object is what changed so you should be able to get the parent container from that and use that as the searchroot.  I'd still recommend you start using a unique name for the CN so you don' t need this additional complexity. 

    use the library function Get-Value

    $targetOU = Get-Value $Request 'ParentContainerDN'

    function Get-Value {
     param (
      $obj,
      $attr
     )
     trap {  continue  }
     return $obj.Get($attr)
     return $null
    } # End Function Get-Value

Reply
  • I've not checked this but the $request object is what changed so you should be able to get the parent container from that and use that as the searchroot.  I'd still recommend you start using a unique name for the CN so you don' t need this additional complexity. 

    use the library function Get-Value

    $targetOU = Get-Value $Request 'ParentContainerDN'

    function Get-Value {
     param (
      $obj,
      $attr
     )
     trap {  continue  }
     return $obj.Get($attr)
     return $null
    } # End Function Get-Value

Children
No Data