Create user
keycloak_user_createCreate a Keycloak user with required username, optional email, enabled, and emailVerified. User cannot log in until password is set via keycloak_user_reset_password.
Instructions
Write operation that creates a new realm user and returns a confirmation message with the username. It does not set a password, so call keycloak_user_reset_password afterwards to give the account credentials; it also does not send any email. Not idempotent: calling it again with the same username creates a conflict rather than a duplicate. Use keycloak_user_update to change an existing user instead of recreating it.
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": {
"username": "<username>"
},
"name": "keycloak_user_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Email address for the new user (e.g. "jane@example.com"). Optional; omit to create the user without an email. | ||
| enabled | No | Whether the account can log in. Optional; defaults to true (enabled) unless explicitly set to false. | |
| username | Yes | Login username for the new user (e.g. "jane.doe"). Required and must be unique within the realm. | |
| emailVerified | No | Whether the email is marked as already verified. Optional; defaults to false unless explicitly set to true. |