Create a new user

Use this step to create new workflow user.

Last published at: June 25th, 2023

createUser Step

Description:

Create a new user.    

Inputs

  • userName – user name of the user
  • fullName – full name of the user
  • email – email of the user
  • password – new password for the user
  • varGlobalForID – variable or global to store the new user id
 

 

Returns

  • True – step executed successfully
  • False – step failed to execute
 

 

Usage:

Example:

Let’s build and execute the createUserStepDef example.             

  • Create a new definition called “createUserStepDef"
  • Select the definition and click the “design” button
  • Drag and connect the "createUser" step as shown in the above graphic
  • Click on the "createUser" step 
  • Configure the "Settings" using the following properties. Provide a name for the step. Provide a new user name and full name. Provide the email address for the application to send notification emails. 
  • Configure the "Advanced" using the following properties. Provide the password for the user (encrypted and stored in the database). Provide the variable/global to store the user ID of the new user on creation. 
  • The “Logging” setting configuration is necessary for documentation and also measure the workflow progress and the percent complete. This is acheived by configuring the step state and percent fields individually as shown in the images below. Configure the “Logging” using the following properties.
  • Save the process definition, create a new process instance and execute. 
  • Render the process instance. Click on the process step. The process step should create a new user and store the UserID in the variable.userID as configured.
  • Navigate to Administration - User Management - search for the user to view.