How to Disable the AD Account automatically from ServiceNow, once we have a new Task for ac. disable

Anuj30
Tera Contributor

How to Disable the AD Account automatically from ServiceNow, once we have a new SC Task for account disable in Servicenow ?

7 REPLIES 7

M Iftikhar
Mega Sage

Hi @Anuj30 ,

To disable an Active Directory (AD) account automatically when a Service Catalog (SC) Task for account disable is created, you can use ServiceNow’s capabilities:

  1. Configure a Flow in Flow Designer (or a Workflow) that triggers on the creation of a “Disable Account” SCTASK.

  2. Use the Disable AD User Account  activity to deactivate the AD account by passing the required user attributes (e.g., sAMAccountName, email, or DN).

  3. Ensure the MID Server has proper AD permissions and credentials stored securely in ServiceNow.

  4. Optionally extend the Flow to log results, send notifications, and handle error cases.

This approach is commonly used in HR offboarding automation to ensure timely and compliant account disablement.

🔗References:

 

Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.

Viraj Hudlikar
Tera Sage
Tera Sage

Hello @Anuj30 

 

Use Flow Designer to create a Flow that triggers upon the completion (or creation/update to a specific state) of the SC Task. Within the Flow, leverage the IntegrationHub Microsoft Active Directory Spoke's "Disable User" action to connect to your AD environment via a MID Server and automatically disable the specified AD account.

Some reference which will be helpful.

https://www.servicenow.com/docs/csh?topicname=ms-ad-v2-spoke.html&version=latest

https://noderegister.service-now.com/kb?id=kb_article_view&sysparm_article=KB1284583

 

If my response has helped you, hit the helpful button, and if your concern is solved, do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

Hi Viraj,

 

We do not have Azure AD Spoke subscription, we want to do it by custom integration

 

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Anuj30 You can do this with the help of a Flow. ServiceNow provides an Active Directory spoke in Flow Designer that can be used to perform the task.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************