REST API  16
REST API for Luna Network HSMs
GET /users/{userid}

GET /users/{userid}

Get information for a specific REST API user.

User Privileges

Users with the following role privileges can perform this command:

  • admin
  • operator
  • monitor

Note: Only admin-level users are allowed to access this resource for a userid other than themselves.

Parameters

userid

The identifier of a user. Can only contain alphanumeric characters, hyphens, and underscores.(No uppercase characters allowed)

Use: Required

JSON Schema:

    Object
    type: string

Responses

200

Success

User info

JSON Schema: User

400

SERVERPLUGIN_INTERNAL_ERROR

Unexpected error

401

SERVERPLUGIN_USERID_NOT_AUTHORIZED

Loggedin user isn't allowed to perform this action for this userid.

404

SERVERPLUGIN_INVALID_USERID

User does not exist.

Example Request

   GET
   https://1.2.3.4:8443/users/admin
   { }

Example Result

{
    "actions": "/users/admin/actions",
    "certificates": "/users/admin/certificates",
    "changeable": false,
    "email": "",
    "files": "/users/admin/files",
    "fullName": "Administrator",
    "passwordLastChanged": "2022-08-29",
    "role": "admin",
    "status": "enabled",
    "userId": "admin"
}