Skip to main content

Create a user

POST 

/node/:hostname/user

Create a new user account on the target node.

Request

Path Parameters

    hostname stringrequired

    Possible values: non-empty

    Target agent hostname, reserved routing value (_any, _all), or label selector (key:value).

Body

required

User account creation parameters.

    name stringrequired

    Username for the new account.

    uid integer

    Numeric user ID. If omitted, the system assigns one.

    gid integer

    Primary group ID. If omitted, a group matching the username is created.

    home string

    Home directory path.

    shell string

    Login shell path.

    groups string[]

    Supplementary group names.

    password string

    Initial password (plaintext, hashed by the agent).

    system boolean

    Create a system account.

Responses

User created.

Schema

    job_id uuid

    The job ID used to process this request.

    results

    object[]

    required

  • Array [

  • hostname stringrequired

    Hostname of the agent that processed this operation.

    status stringrequired

    Possible values: [ok, failed, skipped]

    The status of the operation for this host.

    name string

    Username.

    changed boolean

    Whether the operation modified system state.

    error string

    Error message if the agent failed.

  • ]

Loading...