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.
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.
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.