- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-16-2021 06:36 PM
Hello,
What is the best way to disable servicenow accounts for users inactive in Active Directory? Is it transform map or business rule? I have read about creating the UserAccountControl as a field and mapping that field.
Please advise.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-16-2021 07:34 PM
this link from docs has the solution
Find inactive LDAP accounts using the userAccountControl field
Regards
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-16-2021 07:11 PM
How are you actually provisioning users in your instance; are you doing so via an LDAP integration, or another method?
If you are using LDAP then, yes, the recommended approach is to use the userAccountControl and a custom field populated on LDAP import/update, and a business rule on update to set the user record to active=false when a value of 514 is populated in that field. That is the best approach that I've seen.
I hope this helps!
If this was helpful or correct, please be kind and remember to click appropriately!
Michael Jones - Proud member of the CloudPires team!
Michael D. Jones
Proud member of the GlideFast Consulting Team!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-19-2021 04:08 AM
You marked my answer as correct and then marked a later answer (with the exactly the same link that I provided and less information) as the correct one. Was that an error or did I miss something in my answer?
I hope this helps!
If this was helpful or correct, please be kind and remember to click appropriately!
Michael Jones - Proud member of the CloudPires team!
Michael D. Jones
Proud member of the GlideFast Consulting Team!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-18-2023 05:46 AM - edited ā01-18-2023 05:47 AM
Hi Michael
I found your answer to be very useful, with the added context of what you did. Especially, since the links both you and the other person provided, does not work anymore, this answer is much more helpful. I found the correct links on the docs.
I hope this reply and the 1 mark of Helpful redeems it just a bit.
If anyone is looking, the updated link I found is this: https://docs.servicenow.com/bundle/tokyo-platform-security/page/integrate/ldap/task/t_FindInactLDAPA...
Thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-16-2021 07:34 PM
this link from docs has the solution
Find inactive LDAP accounts using the userAccountControl field
Regards
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader