Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Create User Azure AD activity

The Create User activity creates a user for the Azure Active Directory tenant.

To access this activity in the Workflow Editor, select the Custom tab, and then navigate to Custom Activities > Azure AD. This activity was built with the REST web service activity template.

Important: The REST message used for this activity must be configured to use OAuth 2.0.

Input variables

VariableDescription
display_nameName of the Azure AD user in the accepted display format, such as jacinto.gawron.
user_principal_nameUser principal name (UPN) in an email format. For example, you might enter jacinto.gawron@khitomer.com.
mail_nicknameUser's email alias that redirects to the user's full address.
passwordUser's Azure AD password. This password must be passed as a workflow input with a type of Password (2 Way Encrypted) and must meet the password policy set in Azure AD.
change_passwordControl that requires the user to change their password at the next login, if set to true.
account_enabledControl that sets the user's account is enabled, if set to true.
given_nameFirst name of the user.
surnameLast name of the user.
other_mailsList of additional email addresses for the user. For example, you might enter ["jac@home.com", "jgawron@fabrikam.com"].
countryThe country or region in which the user is located. For example, you might enter US or UK. The default value is set toUS.
cityCity in which the user is located.
departmentName of the department in which the user works.
mobileUser's primary cell phone number.
job_titleUser's job title.
physical_delivery_office_nameOffice location in the user place of business.
postal_codePostal code of the user's address.
preferred_languageLanguage in which the user prefers to communicate. This value must follow the ISO 639-1 Code. For example, you might enter en-US. The default value is set to en-US.
stateState or province for the user's address.
street_addressStreet address of the user's place of business.
telephone_numberPrimary telephone number of the user's place of business.
usage_locationTwo letter country code that is required for users who are assigned Office 365 licenses. The default value is US.

Output variables

VariableDescription
errorReturns the error string from the REST message. If there are no errors, this variable returns a null value.
status\_codeContains the status code returned from the Web service.
user\_existsOutput variable mapped to the JSON message that contains the `User already exists` error.
user\_infoThe user_info array contains attributes that can be leveraged by other activities as inputs. For example, the user objectid output (GUID) can be passed to the Add User to Group activity as the user_id input.- objectid: User's Azure AD identifier. - accountEnabled: Boolean variable indicating whether the user's account is active or inactive. - displayName: Users display name, such as jacinto.gawron. - userPrincipalName: User's name in email format, such as jacinto.gawron@wammo.com. - mailNickname: User's email alias.

Conditions

ConditionsDescription
Created userActivity successfully created the user.
User already existsUser already exists in the tenant domain.
FailureActivity failed to connect to Azure AD, or an input value was invalid.