Skip to main content

Get a user

GET 

/node/:hostname/user/:name

Get a specific user account by name 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.

Responses

User account detail.

Schema

    job_id uuid

    The job ID used to process this request.

    results

    object[]

    required

  • Array [

  • hostname stringrequired

    Hostname of the agent that reported this entry.

    status stringrequired

    Possible values: [ok, failed, skipped]

    The status of the operation for this host.

    users

    object[]

    User accounts on this host.

  • Array [

  • name string

    Username.

    uid integer

    Numeric user ID.

    gid integer

    Primary group ID.

    home string

    Home directory path.

    shell string

    Login shell path.

    groups string[]

    Supplementary group names.

    locked boolean

    Whether the account is locked.

  • ]

  • error string

    Error message if the agent failed.

  • ]

Loading...