Deprovision employee access in ServiceNow and Active Directory
Customer ServiceIT Service ManagementDirectory Services
What it does
When someone creates a disable employee request in ServiceNow, this automation finds that person in Active Directory and disables the account. It then removes them from all groups so access is fully revoked across the organization.
Who it's for
IT teams who need to disable employee accounts and remove group memberships when someone leaves.
Apps used
How teams use this
Disable an employee on their last day
Create a disable employee request in ServiceNow and the account is removed from Active Directory and all groups in one flow. IT does not need to run manual steps in multiple systems.
Offboard contractors and vendors
Use the same automation for contractors and vendors by changing the request type or adding a contractor flag. The disabling and group removal process stays the same.
Notify managers when offboarding completes
Add a step to send a message to the manager or HR channel when someone is fully deprovisioned. Include the completion status and timestamp so stakeholders know the work is done.
Archive mailbox and file shares
Include steps to disable the mailbox and remove access to file shares by adding Exchange and SharePoint integrations. The same ServiceNow request triggers all deprovisioning tasks in one flow.
How it works
- New disable employee request. A new request record is created in the Request table in ServiceNow to disable an employee account.
- Find someone in Active Directory. Search Active Directory for that person by name or ID so the right account is disabled and the distinguishedName is retrieved for the next steps.
- Disable the account. Disable that person in Active Directory when the distinguishedName is found, so the account can no longer sign in to any system.
- Remove from all groups. Search for all groups that person belongs to in Active Directory, then remove them from each group so access is fully revoked across the organization.
- Mark the request complete. Update the ServiceNow request so IT can see the offboarding steps finished and the employee is fully deprovisioned.