Change Workflow not triggering in OnPostUndoDeprovision

Hello,

I've created a change workflow when 'Account Is Disabled' attribute changes, then the workflow sets an user created Virtual attribute. But in OnPostUndoDerovision of an user account workflow trigger is not happening, usually when undo deprovision happens?

user account gets enabled from disable state that means the change workflow should trigger but its not happening in this case.

Could someone please help me why this is not happening. Do let me know if you need more info around this.

Thanks.

Parents Reply
  • If you really want to pursue this, rather than using a workflow then you may need to implement the handler as a policy script embedded into a provisioning policy.

    Function OnPostUndoDeprovision ($Request)

    {

    If ($Request.class -ne "user") {return}

    # Get the name of the affected user from $Request object

    $UserDN = $Request.DN

    # Insert code here to react to the to the undo deprovision

     

    }

Children