Workflow and ServiceDesk Community

 View Only
  • 1.  Issue updating AD USers with workflow

    Posted Nov 01, 2013 10:51 AM

    Hi guys

    I have a strange issue with workflow when updating users in AD. I have successfully updated AD users from several projects but I cannot get workflow to change the "user must change password at next logon" setting. I can successfully update other settings on the account tab in AD as we use a workflow project to disable inactive accounts and the "Account is disabled" setting can be updated without issue. Also, if I reset an AD password via workflow then it successfully ticks the "user must change password at next logon" option in AD. It is only when i try to do this using and UPdate USer component that it fails. No error is given, the process carries on as if it were successful but the setting in AD remains the same.

    Has anyone else seen this behaviour or can someone suggest why this might be happening?

     

     



  • 2.  RE: Issue updating AD USers with workflow
    Best Answer

    Posted Nov 07, 2013 03:57 PM

    I have had this exact issue and managed to fix it by using the Update User component with the following settings:

    1. I set the User Info Source to From Editor.
    2. Open the editor and go to the Attributes tab.
    3. Add an attribute with the name pwdLastSet and set it to -1.

    In my case it was setting the "User must change..." attribute every time I used the Reset Password components.  If you have a need to unlock the user's account, you can use the lockoutTime attribute with a value of 0.



  • 3.  RE: Issue updating AD USers with workflow

    Posted Nov 11, 2013 09:12 AM

    That's a brillaint suggestion. I'll try it out now and let you know how I get on with it but I should imagine that will work. Glad I'm not the only one who has come up against this problem :-)



  • 4.  RE: Issue updating AD USers with workflow

    Posted Nov 11, 2013 09:43 AM

    worked perfectly. Thanks Justin