younifyd
Menu

Get Users Count

Get users count

GET/admin/realms/{realm}/users/count

Use it in a workflow

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

Request

Path parameters

realmstringrequired

realm name (not id!)

Query parameters

emailstring

A String contained in email, or the complete email, if param "exact" is true

emailVerifiedboolean

whether the email has been verified

enabledboolean

Boolean representing if user is enabled or not

exactboolean

Boolean which defines whether the params "last", "first", "email" and "username" must match exactly

firstNamestring

A String contained in firstName, or the complete firstName, if param "exact" is true

idpAliasstring

The alias of an Identity Provider linked to the user

idpUserIdstring

The userId at an Identity Provider linked to the user

lastNamestring

A String contained in lastName, or the complete lastName, if param "exact" is true

qstring

A query to search for custom attributes, in the format 'key1:value2 key2:value2'

searchstring

A String contained in username, first or last name, or email. Default search behavior is prefix-based (e.g., foo or foo*). Use *foo* for infix search and "foo" for exact search.

usernamestring

A String contained in username, or the complete username, if param "exact" is true

Response

Returns 200 with a integer (int32). Read it in later steps with {{getUsersCount.response.data.<field>}}.

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

Get Users Count — Keycloak — Documentation