# Create user in Active Directory

Source: [https://docs.virtosoftware.com/docs/virto-workflow-automation-web-part/virto-sharepoint-workflow-activities-kit-sharepoint-2010-workflow-platform/ad-activities/create-user-in-ad/](https://docs.virtosoftware.com/docs/virto-workflow-automation-web-part/virto-sharepoint-workflow-activities-kit-sharepoint-2010-workflow-platform/ad-activities/create-user-in-ad/)
Product: Virto Workflow Automation Web Part
Updated: 2026-08-12


This activity allows creating user in Active Directory.

![Create user in Active Directory workflow activity in the SharePoint workflow designer](https://img-docs.virtosoftware.com/wp-content/uploads/2024/10/create_user_in_active_directory_1.png)

Activity creates user in Active Direcotry and initializes sAMAccountName, userPrincipalName, sn, givenName, displayName, userAccountControl properties. You can set additional properties via “Set user's custom attribute in Active Directory” activity.


| AD Property Name | Value |
|---|---|
| sAMAccountName | Login property value without domain. userlogin@yourdomain.local |
| userPrincipalName | Login property value. **userlogin@yourdomain.local** |
| sn | LastName property value. |
| givenName | FirstName property value. |
| displayName | Auto. “[FirstName] [LastName]“ |
| userAccountControl | ADS\_UF\_NORMAL\_ACCOUNT\| ADS\_UF\_DONT\_EXPIRE\_PASSWD |


By default, activity uses the current user when authenticating. If you want to use custom

authentication, use “Set Active Directory authentication” activity before.

## **SharePoint Workflow Designer Phrase**

Create in this path, new user with logon name this logon name, first name this first name, last name this last name and password this password.

**Parameters**


| Parameter | Description |
|---|---|
| this path | Correct LDAP path to folder. Ex: “OU=TestOU,DC=yourdomain,DC=local”.Use Active Directory Explorer ([http://technet.microsoft.com/en-us/sysinternals/bb963907.aspx](http://technet.microsoft.com/en-us/sysinternals/bb963907.aspx)) to get correct path. |
| this logon name | User login name with domain. Ex: userlogin@yourdomain.local,yourdomain\userlogin |
| this first name | First name |
| this last name | Last name |
| this password | **Optional**. User password |

