keycloak_count_users
Count Keycloak users that match filters like username, email, realm, or custom attributes, returning only the count without fetching user details.
Instructions
Count users matching a filter, without fetching them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Search custom user ATTRIBUTES: space-separated key:value pairs, e.g. "department:sales tier:gold". This is the only way to filter on attributes. | |
| No | Filter by email. Pair with `exact` for an exact match. | ||
| exact | No | Make `username`/`email`/`firstName`/`lastName` exact rather than prefix matches. | |
| realm | No | Realm to operate on. Defaults to the server's configured realm (KEYCLOAK_REALM). | |
| search | No | Infix search across username, first name, last name and email. A prefix match by default; wrap in quotes ("bob") for an exact match. | |
| enabled | No | Only enabled (true) or only disabled (false) users. | |
| lastName | No | ||
| username | No | Filter by username. Pair with `exact` for an exact match. | |
| firstName | No | ||
| emailVerified | No |