Skip to main content

Update a user

PUT 

/node/:hostname/user/:name

Update an existing 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).

    name stringrequired

    Possible values: non-empty

    User account name.

Body

required

User account update parameters.

    shell string

    New login shell path.

    home string

    New home directory path.

    groups string[]

    Supplementary group names (replaces existing).

    lock boolean

    Lock or unlock the account.

Responses

User updated.

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...