Retrieve the value of a specific attribute from a JSON object that has been serialized
into a string. Use this action to retrieve user information from the user info response or ID
token during authentication provider user registration flows. Then, create and update user records
with the user information that you retrieved from this action.
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
Get, and then select Get User Data from JSON
String.
Set Input Values
Input Parameter
Description
JSON Object String
A JSON object that represents a map of attributes and that has been serialized into a
string.
In authentication provider user registration flows, to pass in the user info
response or ID token, first create an Apex-defined variable for the
Auth.UserData object. For the input parameter, specify one of these
properties from the Auth.UserData object.
idTokenJSONString
userInfoJSONString
JSON Attribute Key
A key that contains the full JSON variable path for a specific attribute from the JSON
object.
For example, to get the value of the first type claim in this
JSON structure, use the JSON variable path $.location[0].type as the
key.
Each action returns a single attribute. To rename the output so that it’s easier for you to use
it in the flow, assign the output to a variable. For example, if you retrieve an attribute that
stores a single sign-on identifier from the provider, store it in a new
federationIdentifier variable. Reference the variable when you create and
update user records.
Input Parameter
Description
Attribute Value
The value for the attribute that was specified in the JSON attribute key. The value is
stored in an instance of the Auth.JsonValueOutput class in a property that
corresponds to the value type. For example, if the retrieved value is an integer, it’s
stored in the integerValue property.
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.