---
sourceDocument: Xanadu ServiceNow AI Platform Capabilities
sourceDocumentLink: https://www.servicenow.com/docs/r/xanadu/servicenow-platform

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Enable AD User Account activity

# Enable AD User Account activity {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

The Enable AD User Account activity enables a Windows Active Directory user account,
making it active.
To access this activity in the Workflow Editor, select the Custom tab, and then navigate to Custom ActivitiesActive Directory.  
Note:  
This activity replaces an AD activity by the same name available in prior releases. If you have a workflow that uses the deprecated activity, your workflow will continue to work normally after upgrading to Instanbul. However, all new workflows must use the custom version of this activity, which was built with the [PowerShell activity designer](https://www.servicenow.com/docs/8l1dwdMTCZc0KE~_ZaWj0g "PowerShell activities are configured to return data to a workflow from a host using Microsoft PowerShell.").

## Input variables

{#r_EnableADUserAccount__table_tvq_rmh_dp__entry__2}

| Variable | Description |
|-|-|
| User | The sAMAccountName of the Active Directory user account. |
| DomainController | IP address of the domain controller machine. |
[Table 1. Enable AD User Account input variables]

{#r_EnableADUserAccount__table_tvq_rmh_dp}

## Output variables

{#r_EnableADUserAccount__table_tt3_tvz_ss__entry__2}

| Variable | Description |
|-|-|
| result | Either success or failure. |
| errorMessage | The executionResult.errorMessages from the [Activity designer parsing sources](https://www.servicenow.com/docs/yuXlPHGwUxbemWJ0MfbuTA#r_ActivityDesignerParsingSources "This table lists the parsing sources available with each execution template."). |
[Table 2. Enable AD User Account output variables]

{#r_EnableADUserAccount__table_tt3_tvz_ss}

## Conditions

{#r_EnableADUserAccount__table_csk_wvz_ss__entry__2}

| Condition | Description |
|-|-|
| Success | AD user account was successfully enabled. |
| Failure | An error occurred while attempting to enable the AD user account. Additional details may be available in the workflow log. |
[Table 3. Enable AD User Account conditions]

{#r_EnableADUserAccount__table_csk_wvz_ss}

*[\>]: and then


