create_user
Add a new user to Keycloak with specified details like username, email, first and last names, and temporary password. Configure user status, email verification, attributes, and target realm.
Instructions
Create a new user.
Args:
username: Username for the new user
email: Email address
first_name: First name
last_name: Last name
enabled: Whether the user is enabled
email_verified: Whether the email is verified
temporary_password: Initial password (user will be required to change it)
attributes: Additional user attributes
realm: Target realm (uses default if not specified)
Returns:
Dict with status and location of created user
Input Schema
Name | Required | Description | Default |
---|---|---|---|
attributes | No | ||
No | |||
email_verified | No | ||
enabled | No | ||
first_name | No | ||
last_name | No | ||
realm | No | ||
temporary_password | No | ||
username | Yes |
Input Schema (JSON Schema)
{
"properties": {
"attributes": {
"anyOf": [
{
"additionalProperties": {
"items": {
"type": "string"
},
"type": "array"
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Attributes"
},
"email": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Email"
},
"email_verified": {
"default": false,
"title": "Email Verified",
"type": "boolean"
},
"enabled": {
"default": true,
"title": "Enabled",
"type": "boolean"
},
"first_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "First Name"
},
"last_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Last Name"
},
"realm": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Realm"
},
"temporary_password": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Temporary Password"
},
"username": {
"title": "Username",
"type": "string"
}
},
"required": [
"username"
],
"title": "create_userArguments",
"type": "object"
}