younifyd
Menu

Get User Info

Get User Info

GET/organizations/{organizationId}/oauth2/userinfo

Use it in a workflow

  1. Add a step and choose the Salesforce Commerce Cloud connector.
  2. Pick the Get User Info action (under Auth (SLAS)).
  3. Fill in the fields below, then reference the result from later steps as {{getUserInfo.response.data}}.

Request

Path parameters

organizationIdstringrequired

An identifier for the Salesforce Commerce Cloud organization the request is being made by. It consists of a prefix 'f_ecom_' followed by a 4-character [realm identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/get-started.html) and a 3-character [instance type identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/get-started.html#instance-types).

Query parameters

channel_idstring

Used when getting user information for a SFCC login. For an B2C Commerce customer, this is angalous to the site ID. Required when getting user information for an B2C Commerce customer.

idpValidateboolean

When a user authenticates via an IDP, SLAS calls the IDP's `/userinfo` endpoint to retrieve user information. Since some IDPs don't reliably return user info, set `idpValidate=false` to skip this call and use the user information already stored in SLAS instead. Default: `true`

Headers

Authorizationstringrequired

SLAS Access Token

Response

Returns 200 with a string. Read it in later steps with {{getUserInfo.response.data.<field>}}.

Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.

Get User Info — Salesforce Commerce Cloud — Documentation