Unlock an ADMP User

Unlock an ADMP User

Use Case:  Automatically unlock user accounts in ADManager Plus when a ticket is raised in ServiceDesk Plus for the same. 

All you have to do is, invoke a Deluge script to unlock the user using ADManager Plus API.


Steps to set it up:

1. To connect with ADManager Plus, you will need the URL where your ADManager Plus is hosted, Auth Token, and Domain Name as a prerequisite. Using a global function, you can store this information securely and call it across custom functions when necessary.
To create a global function, go to AdminRequest Custom FunctionGlobal FunctionsNew. Set the global function's return type to 'Map' and add the Deluge script to the editor.


2. Create Incident Additional fields to store the ADMP field values. Include these additional fields in the required template. 

SDP Additional field names can be fetched from Admin > Incident - Additional Field > API Field Name



3. Under Admin >> Request Custom Function > Custom Action >> New, write a script to automatically unlock employees in your Active Directory.  You can call the global function to this actionable part of the custom function.

Add API field names (of ServiceDesk Plus additional fields) and LDAP field values (of ADManager Plus fields) to the script after ensuring that they are mapped correctly. 

For example, as per the screenshot demonstrated below, sAMAccountName is stored in udf_sline_30.



4. Refer attachment for the deluge script. [File: Unlock_ADMP_User.txt]

5. With custom triggers we can configure a criteria such as ‘when a request is created or approved’ to invoke the deluge script stored in the custom function and automatically unlock an user account in ADMP.




          • Related Articles

          • Modify User Attributes (Department, Manager) in ADMP

            Use Case:  Modifying User Attributes for a user account in AD can be automated with ServiceDesk Plus’ in-product capabilities. Making use of the DRE in ServiceDesk Plus, we can invoke a Deluge script which will unlock the user account in AD using ...
          • Delete a User from ADMP

            Use Case:  While resigning an employee, the HR department sends the employee’s details to the IT department via email. IT department in turn, will delete the employee from the Active Directory.  This process entails redundant work, its time ...
          • Password Reset for a user account in ADMP

            Use Case:  Frequent calls to the help desk to reset their account password, are quite common. This process entails redundant work, its time consuming. This can be automated with ServiceDesk Plus’ in-product capabilities. Making use of the DRE in ...
          • Add/Remove users from Groups in ADMP

            Use Case:  Adding or Removing a user from a group is quite common.  This process entails redundant work for the IT Department and its time consuming. This can be automated with ServiceDesk Plus’ in-product capabilities. Making use of the DRE in ...
          • Enable or Disable an User Account in ADMP

            Use Case:   Automate the acitvation and deactivation of user accounts in your organization's Active Directory (AD) using a single Deluge script. Each time a request is created using a specific template, you can invoke the Deluge script to enable or ...