Skip to main content

Get a user details

get
/api/pvlt/1.0/ctl/iam/user/{user}

Get a user's details.

The role that performs this operation must have the CapIAMReader capability. See Access control for more information about how capabilities are used to control access to operations.

Request

Path parameters

  • user - string required*

    The name of the user.

Query parameters

  • custom_audit - string

    Custom audit information to be included in the audit log.

Possible responses

The request is successful.

object required*
  • name - string required*

    The user name.

  • api_key - object required*

    The metadata associated with the API key of the caller.

    • expiry - string required*

      The expiry time of the API key.

Example
{
"name": "some_user",
"api_key": {
"expiry": "2022-07-05T08:47:12.047Z"
}
}

Try the API

Authorization

Path parameters

Query parameters

Navigate to the docs of your local Vault installation to try the API directly from there.

Code examples

Example