---
sourceDocument: Australia ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/servicenow-platform

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Create AD Object activity

# Create AD Object activity {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

The Create AD Object activity creates an object in Windows Active
Directory.
This activity fails if it finds an existing object with matching input variables.  
To access this activity in the Workflow Editor, select the Custom tab, and then navigate to Custom ActivitiesActive Directory.  
Hinweis:  
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://servicenow-prod.fluidtopics.net/MjnUEg~6RmXMwQSzlAKDTA "PowerShell activities are configured to return data to a workflow from a host using Microsoft PowerShell.").

## Input variables

{#r_CreateADObject__table_ix1_llh_dp__entry__2}

| Variable | Description |
|-|-|
| DomainController | IP address of the domain controller machine. |
| Type | The object type to create: user, group, or computer. |
| OU | The organizational unit to which this object belongs. |
| ObjectName | The sAMAccountName of the Active Directory object. Object name is also used for the name attribute in Active Directory. This behavior is available in ActiveDirectory.psm1. Whatever is passed as the Object name becomes both the samAccountName and the name of the new user in Active Directory. |
| ObjectData | A JSON object containing Active Directory property names and their corresponding values. For example: { "givenName" : "John", "SN" : "Doe", "title" : "Sr. Account Specialist", "allowLogin" : true } This example sets the first name (givenName), last name (SN), and title on the Active Directory user account and allows that user to log in (allowLogin). This field allows expression evaluation via the ${} variable substitution syntax. |
[Tabelle : 1. Create AD Object input variables]

{#r_CreateADObject__table_ix1_llh_dp}

## Output variables

{#r_CreateADObject__table_bby_wqz_ss__entry__2}

| Variable | Description |
|-|-|
| result | Either success or failure. |
| errorMessage | The executionResult.errorMessages from the [Activity designer parsing sources](https://servicenow-prod.fluidtopics.net/jecuRsCuzIyfFDyPkB_Ehw#r_ActivityDesignerParsingSources "This table lists the parsing sources available with each execution template."). |
[Tabelle : 2. Create AD Object output variables]

{#r_CreateADObject__table_bby_wqz_ss}

## Conditions

{#r_CreateADObject__table_fnq_grz_ss__entry__2}

| Condition | Description |
|-|-|
| Success | A Windows Active Directory object was created successfully. |
| Failure | An error occurred while attempting to create the AD object. Additional details may be available in the workflow log. |
[Tabelle : 3. Create AD Object conditions]

{#r_CreateADObject__table_fnq_grz_ss}

