How to automate unlocking of user accounts in Active Directory using Custom Triggers

How to automate unlocking of user accounts in Active Directory using Custom Triggers

This post described the use of a python script to automate unlocking of user accounts from request. This script can be configured under Request custom triggers and you will find more information about this here. Integrating ServiceDesk Plus with ADManager Plus allows technicians to perform Active Directory user management operations right from within their help desk console. This article explains how to set up automatic unlocking of AD user accounts using Custom Triggers.

Use Case: In most organizations, calls to the help desk from users who get locked out of their accounts for various reasons, are quite common. This is a time-consuming task for technicians who need to manually unlock the user accounts one by one. The custom trigger feature solves this problem by automatically unlocking the user accounts in Active Directory every time a ticket is approved for the same. 

Learn more about ADManager Plus and ServiceDesk Plus integration here or drop an email at support@admanagerplus.com 

Execution steps:
1. Download the attached zip
2. Extract the file to SDP-Home/integration/custom_scripts folder
3. Edit the unlock_user.py file and provide the inputs, instructions are available within the script as commented lines.




sdpFields can be fetched from Admin -> Service Catalog - Additional Fields section.





4. Configure the script and its parameter under the Admin -> Custom Triggers. The script file to run parameter will be set as shown below.
py unlock_user.py $COMPLETE_V3_JSON_FILE 


‚Äč
Please refer to the attached screenshot showing a sample implementation below.






A short guide on setting up python is available here




          • Related Articles

          • How to automate AD user creation using Custom Triggers

            This post described the use of a python script to automate AD user creation from request. This script can be configured under Request custom triggers and you will find more information about this here. Integrating ServiceDesk Plus with ADManager Plus ...
          • 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 ...
          • How to automatically create a project and associate it to a change using change custom triggers.

            This post describes the use of a sample python script you to create a Project automatically from a Change request and create a association between them.This script can be configured under Change custom triggers and you will find more information ...
          • 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 ...
          • How to implement dynamic request approval through custom triggers with configurable CSV file.

            This is a sample script written in Python to handle Conditional Approvals for Incident \ Service Requests, through Custom Triggers.More information about Conditional Approvals can be  found in the link here One of the advantages of using this script ...