Loading
Prepare for Email to Become the Default Login ExperienceRead More
Intermittent freezing when using using certain browser versionsRead More
Automate Your Business Processes with Salesforce Flow
Generate User Data Action

Generate User Data Action

Generate placeholder values for fields that are required to create a user record. Use this action in authentication provider user registration flows if the identity provider doesn’t give you enough information to create a user.

Required Editions

View supported editions.

This action is available only for the Identity User Registration Flow type.

In Flow Builder, add an Action element to your flow. In the Action field, enter Generate, and then select Generate User Data.

This flow doesn’t have any input parameters.

Store Output Values

The action returns an instance of the Auth.GeneratedUserData Apex class with placeholder values for all fields that are required to create a user. For string fields, the action generates a value. For picklist fields, the field uses the default value. Here’s a list of fields and their generated values.

User Field Generated Placeholder Value
alias alias
email placeholder-email@example.com
emailEncodingKey A default value based on the user context.
firstName placeholder-first-name
languageLocaleKey A default value based on the user context.
lastName placeholder-last-name
localeSidKey A default value based on the user context.
timeZoneSidKey A default value based on the user context.
username

placeholder-username<uniqueNumber>@example.com

For example, placeholder-username17300000000000@example.com. The unique number is 14 digits.

To rename the output so that it’s easier for you to use it in the flow, assign the output to a variable. Use the output in Create User records. After the flow runs and a user is created in with the placeholder values, update the values from the user detail page in Setup.

 
Loading
Salesforce Help | Article