Get workflow user id

Use this process step to fetch workflow User ID information.

Last published at: July 3rd, 2023

getWorkflowUserid Step


Get the workflow user id by the user name


  • userName – user name of the user
  • varGlobalForID – variable or global to store the user’s user id 



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




Let’s build and execute the getWorkflowUserIDDef example.          

  • Create a new definition called “getWorkflowUserIDDef
  • Select the definition and click the “design” button
  • Drag a “getWorkflowUserID” step from the toolbox
  • Connect the dots between the start and “getWorkflowUserID” step
  • Define the variable/global to hold the user-id
  • Click on the “GetWorkflowUserID” step to configure its “Settings” properties. Provide a name for the step. Provide the user name to fetch. Provide the variable/global to hold the user ID after execution. 
  • 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. 
  • Check the step properties by rendering the process instance. The step shows the user name’s User-ID.