younifyd
Menu

Create Users

Create users

POST/admin/realms/{realm}/users

Use it in a workflow

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

Request

Path parameters

realmstringrequired

realm name (not id!)

Request body

Enter the body as JSON in the step's Body 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
}

Response

Returns 201 with a any. Read it in later steps with {{createUsers.response.data.<field>}}.

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