add_user_to_group
Adds a user to a specified group in Keycloak IAM. Requires user ID, group ID, and optional realm. Returns status confirmation for user-group association.
Instructions
Add a user to a group.
Args:
user_id: User ID
group_id: Group ID
realm: Target realm (uses default if not specified)
Returns:
Status message
Input Schema
Name | Required | Description | Default |
---|---|---|---|
group_id | Yes | ||
realm | No | ||
user_id | Yes |
Input Schema (JSON Schema)
{
"properties": {
"group_id": {
"title": "Group Id",
"type": "string"
},
"realm": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Realm"
},
"user_id": {
"title": "User Id",
"type": "string"
}
},
"required": [
"user_id",
"group_id"
],
"title": "add_user_to_groupArguments",
"type": "object"
}