younifyd
Menu

Get Users By User Id

Get users by user id

GET/admin/realms/{realm}/users/{user-id}

Use it in a workflow

  1. Add a step and choose the Keycloak connector.
  2. Pick the Get Users By User Id action (under Users).
  3. Fill in the fields below, then reference the result from later steps as {{getUsersByUserId.response.data}}.

Request

Path parameters

realmstringrequired

realm name (not id!)

user-idstringrequired

Query parameters

userProfileMetadataboolean

Indicates if the user profile metadata should be added to the response

Response

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

idstring
usernamestring
firstNamestring
lastNamestring
emailstring
emailVerifiedboolean
attributesobject
userProfileMetadataobject
attributesarray<object>9 fields
groupsarray<object>4 fields
enabledboolean
selfstring
originstring
createdTimestampinteger (int64)
totpboolean
federationLinkstring
serviceAccountClientIdstring
credentialsarray<object>
idstring
typestring
userLabelstring
createdDateinteger (int64)
secretDatastring
credentialDatastring
priorityinteger (int32)
valuestring
temporaryboolean
devicestring
hashedSaltedValuestring
saltstring
hashIterationsinteger (int32)
counterinteger (int32)
algorithmstring
digitsinteger (int32)
periodinteger (int32)
configobject
federationLinkstring
disableableCredentialTypesarray<string>
requiredActionsarray<string>
federatedIdentitiesarray<object>
identityProviderstring
userIdstring
userNamestring
realmRolesarray<string>
clientRolesobject
clientConsentsarray<object>
clientIdstring
grantedClientScopesarray<string>
createdDateinteger (int64)
lastUpdatedDateinteger (int64)
grantedRealmRolesarray<string>
notBeforeinteger (int32)
applicationRolesobject
socialLinksarray<object>
socialProviderstring
socialUserIdstring
socialUsernamestring
groupsarray<string>
accessobject
json
{
  "id": "string",
  "username": "string",
  "firstName": "string",
  "lastName": "string",
  "email": "string",
  "emailVerified": false,
  "attributes": {},
  "userProfileMetadata": {
    "attributes": [
      {
        "name": "string",
        "displayName": "string",
        "required": false,
        "readOnly": false,
        "annotations": {},
        "validators": {},
        "group": "string",
        "multivalued": false,
        "defaultValue": "string"
      }
    ],
    "groups": [
      {
        "name": "string",
        "displayHeader": "string",
        "displayDescription": "string",
        "annotations": {}
      }
    ]
  },
  "enabled": false,
  "self": "string",
  "origin": "string",
  "createdTimestamp": 0
}

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