younifyd
Menu

Get Passkey User By Login Id

Get Passkey User By Login ID

GET/organizations/{organizationId}/oauth2/webauthn/passkey/user/{loginId}

Use it in a workflow

  1. Add a step and choose the Salesforce Commerce Cloud connector.
  2. Pick the Get Passkey User By Login Id action (under Auth (SLAS)).
  3. Fill in the fields below, then reference the result from later steps as {{getPasskeyUserByLoginId.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).

loginIdstringrequired

The login ID (username) of the user whose passkey information is being retrieved

Query parameters

channel_idstringrequired

The channel (B2C Commerce site) that the user is associated with.

Headers

Authorizationstringrequired

Shopper JWT access token

Response

Returns 200 with an object. Read it in later steps with {{getPasskeyUserByLoginId.response.data.<field>}}.

idinteger (int32)

Unique identifier for the passkey user

userNamestring

The username of the passkey user

displayNamestring

The display name of the passkey user

userHandlestring

The user handle (WebAuthn user ID)

slasUserIdinteger (int32)

The associated SLAS user ID

credentialsarray<object>

Set of passkey credentials associated with this user

idinteger (int32)

Unique identifier for the credential

userIdinteger (int32)

The ID of the user who owns this credential

credentialIdstring

The WebAuthn credential ID

nickNamestring

User-friendly name for the credential

publicKeystring

The public key associated with this credential

userHandlestring

The user handle associated with this credential

signatureCountstring

The signature counter for replay attack prevention

json
{
  "id": 26,
  "userName": "user@example.com",
  "displayName": "John Doe",
  "userHandle": "yRU-7pWyWUE6nw8hztqqUZG635p7UKDDb2lbC1FyF78",
  "slasUserId": 10000,
  "credentials": [
    {
      "id": 20,
      "userId": 26,
      "credentialId": "SVKfbUGBXofb2JzliJrMtZDENYByWgq_j4-p2M_3wC4",
      "nickName": "Fingerprint",
      "publicKey": "pQECAyYgASFYIHM_4IKLMC8dboiRNfD0E0Gk4LmCTIgEyCTr-9SyHHeIIlggfn5_AzAl67kttLXWb-_Ts6MG7WHKoXzlKtame_wEYPE",
      "userHandle": "yRU-7pWyWUE6nw8hztqqUZG635p7UKDDb2lbC1FyF78",
      "signatureCount": "42"
    }
  ]
}

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