Skip to main content

Create new user

POST 

/api/v2/users

Create new user

Request​

Body

required

    email stringrequired
    username string
    firstName string
    lastName string
    password string

    Initial password. When omitted, an email is sent for the user to set their own password.

    temporary boolean

    When true, the user must change the password on next login

    groupIds string[]

    Group ids to add the user to on creation

    groupNames string[]

    Group names to add the user to on creation

Responses​

Schema

    id string
    email stringrequired
    username string
    firstName string
    lastName string
    roles string[]
    groups string[]

    Names of the Keycloak groups the user belongs to

Loading...