Unlock AD Account activity
reference brazil Updated Sep 10, 2026 1 min read r_UnlockADAccount.md
The Unlock AD Account activity unlocks a locked Active Directory user account.
You can use the Is AD Account Locked activity activity to determine if an account is locked.
To access this activity in the Workflow Editor, select the Custom tab, and then navigate to Custom Activities > Active 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.
Input variables
| Variable | Description |
|---|---|
| DomainController | IP address of the domain controller machine. |
| User | The sAMAccountName of the Active Directory user account. |
Output variables
| Variable | Description |
|---|---|
| result | Either success or failure. |
| errorMessage | The executionResult.errorMessages from the Activity designer parsing sources. |
Conditions
| Condition | Description |
|---|---|
| Success | The account was successfully unlocked. |
| Failure | An error occurred while attempting to unlock the account. Additional details may be available in the workflow log. |
Parent Topic:Active Directory activity pack
48 lines · 2.4 KB
--- title: Unlock AD Account activity description: The Unlock AD Account activity unlocks a locked Active Directory user account. locale: en-US canonical_url: https://www.servicenow.com/docs/r/integrate-applications/orchestration/r\_UnlockADAccount.html release: brazil product: Orchestration classification: orchestration topic_type: reference last_updated: "2026-09-10" reading_time_minutes: 1 breadcrumb: [Active Directory activity pack, Orchestration activity packs, Classic Orchestration, Workflow Data Fabric] --- # Unlock AD Account activity The Unlock AD Account activity unlocks a locked Active Directory user account. You can use the [Is AD Account Locked activity](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/integrate-applications/orchestration/r_IsADAccountLocked.md) activity to determine if an account is locked. To access this activity in the Workflow Editor, select the **Custom** tab, and then navigate to **Custom Activities** > **Active 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://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/integrate-applications/orchestration/c_PowershellActivityDesigner.md). ## Input variables |Variable|Description| |--------|-----------| |DomainController|IP address of the domain controller machine.| |User|The sAMAccountName of the Active Directory user account.| ## Output variables |Variable|Description| |--------|-----------| |result|Either **success** or **failure**.| |errorMessage|The **executionResult.errorMessages** from the [Activity designer parsing sources](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/integrate-applications/orchestration/t_CreateAParsingRule.md).| ## Conditions |Condition|Description| |---------|-----------| |Success|The account was successfully unlocked.| |Failure|An error occurred while attempting to unlock the account. Additional details may be available in the workflow log.| **Parent Topic:**[Active Directory activity pack](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/integrate-applications/orchestration/c_OrchActiveDirectoryActivities.md)
| title | Unlock AD Account activity |
| description | The Unlock AD Account activity unlocks a locked Active Directory user account. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/integrate-applications/orchestration/r\_UnlockADAccount.html |
| release | brazil |
| product | Orchestration |
| classification | orchestration |
| topic_type | reference |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Active Directory activity packOrchestration activity packsClassic OrchestrationWorkflow Data Fabric |