younifyd
Menu

Get Users Groups Count By User Id

Get users groups count by user id

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

Use it in a workflow

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

Request

Path parameters

realmstringrequired

realm name (not id!)

user-idstringrequired

Query parameters

searchstring

Response

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

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

Get Users Groups Count By User Id — Keycloak — Documentation