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

Custom workflow - email user random generated password

 Hello guys,

 

I have just recently installed One Identity Password Manager version 5.7.0.1525 in our test-environment. We see that the existing workflows can not apply to our situation, and need to create a new simple custom workflow. We are looking for a self-selvice portal for our users where they simply can reset their password.

 

The workflow should consist of a user searching after his AD-user and then choose the custom workflow "Password email reset" workflow, a random generated password is set on the user account in AD (in addition: "user must change password at next logon" is checked), and an email is sent to the user with the password.

 

The best would be to email the user a link which he then access and set a new password - like the way facebook, gmail, etc do it. Is this possible? :)

 

Best regards

Bilal

Parents
  • This script sample should be useful:


    function PostExecuting($workflow, $activity)
    {
    if ($activity.State.IsSuccess)
    {

    #gets the User from the Workflow context
    $PMUser = $workflow.Userinfo

    $PMUser | out-file c:\temp\scriptLogging.txt -append

    #gets the GUID of the User
    $UserGUID = $PMUser.id

    $UserGUID | out-file c:\temp\scriptLogging.txt -append

    }
    else
    {

    }
    }
Reply
  • This script sample should be useful:


    function PostExecuting($workflow, $activity)
    {
    if ($activity.State.IsSuccess)
    {

    #gets the User from the Workflow context
    $PMUser = $workflow.Userinfo

    $PMUser | out-file c:\temp\scriptLogging.txt -append

    #gets the GUID of the User
    $UserGUID = $PMUser.id

    $UserGUID | out-file c:\temp\scriptLogging.txt -append

    }
    else
    {

    }
    }
Children
No Data