invite_existing_user_to_organization
Invites an existing Keycloak user to an organization by user ID, enabling you to add known users to a specified realm's organization without creating new accounts. Requires Keycloak 25+.
Instructions
Invites an existing user to the organization, using the specified user id. Requires Keycloak 25+.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"realm": "<realm>",
"org_id": "<org_id>",
"invitation_data": "<invitation_data>"
},
"name": "invite_existing_user_to_organization"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| realm | Yes | Realm name | |
| org_id | Yes | Organization ID | |
| invitation_data | Yes | Form fields: id (ID of the existing user) |