---
schema_version: "1"
id: 57efce70dc3add218fc5ae0d76bfe0ce00317ab4fb6f14533af174b32f97d9ea
title: Generate User Data Action
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/flow_ref_elements_actions_generate_user_data.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_actions_generate_user_data.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: e7755746842e64ab5760ebe6858aebcd8e288ca9a50a1bc400bf6bea995aba11
description: 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.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# 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

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=platform.flow_ref_supported_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Flow Builder. Some Flow Builder features integrate with other Salesforce products that require additional licenses.">View supported editions.</a></td></tr></tbody></table>

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.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d324875e82">User Field</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d324875e85">Generated Placeholder Value</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d324875e82 "><code>alias</code></td>

            <td data-label="Generated Placeholder Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d324875e85 ">alias</td>

          </tr>
          <tr class="">
            <td data-label="User Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d324875e82 "><code>email</code></td>

            <td data-label="Generated Placeholder Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d324875e85 ">placeholder-email@example.com</td>

          </tr>
          <tr class="">
            <td data-label="User Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d324875e82 "><code>emailEncodingKey</code></td>

            <td data-label="Generated Placeholder Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d324875e85 ">A default value based on the user context.</td>

          </tr>
          <tr class="">
            <td data-label="User Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d324875e82 "><code>firstName</code></td>

            <td data-label="Generated Placeholder Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d324875e85 ">placeholder-first-name</td>

          </tr>
          <tr class="">
            <td data-label="User Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d324875e82 "><code>languageLocaleKey</code></td>

            <td data-label="Generated Placeholder Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d324875e85 ">A default value based on the user context.</td>

          </tr>
          <tr class="">
            <td data-label="User Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d324875e82 "><code>lastName</code></td>

            <td data-label="Generated Placeholder Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d324875e85 ">placeholder-last-name</td>

          </tr>
          <tr class="">
            <td data-label="User Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d324875e82 "><code>localeSidKey</code></td>

            <td data-label="Generated Placeholder Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d324875e85 ">A default value based on the user context.</td>

          </tr>
          <tr class="">
            <td data-label="User Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d324875e82 "><code>timeZoneSidKey</code></td>

            <td data-label="Generated Placeholder Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d324875e85 ">A default value based on the user context.</td>

          </tr>
          <tr class="">
            <td data-label="User Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d324875e82 "><code>username</code></td>

            <td data-label="Generated Placeholder Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d324875e85 ">
              <p>placeholder-username&lt;uniqueNumber&gt;@example.com </p>
              <p style="margin-bottom:0;">For example,
                placeholder-username17300000000000@example.com. The unique number is 14 digits.</p>
            </td>

          </tr>
        </tbody>
      </table>

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.