get_user_groups
Retrieve a list of groups associated with a specific user in Keycloak. Specify the user ID and optionally the realm to manage access and identity effectively.
Instructions
Get all groups for a user.
Args:
user_id: User ID
realm: Target realm (uses default if not specified)
Returns:
List of groups the user belongs to
Input Schema
Name | Required | Description | Default |
---|---|---|---|
realm | No | ||
user_id | Yes |
Input Schema (JSON Schema)
{
"properties": {
"realm": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Realm"
},
"user_id": {
"title": "User Id",
"type": "string"
}
},
"required": [
"user_id"
],
"title": "get_user_groupsArguments",
"type": "object"
}