v1

latestOpenAPI 3.0.02026-07-17508972.4 KB
Users

Get information of a user by ID

get/users/view/{userId}

Path parameters

userIdinteger required
Example:1

Numeric ID of the User

Response

User response

idinteger
uuidstring uuid
usernamestring
role_idinteger
individual_idinteger
disabledboolean
createdstring datetime
modifiedstring datetime
organisation_idinteger

Example response

{
  "id": 1,
  "uuid": "c99506a6-1255-4b71-afa5-7b8ba48c3b1b",
  "username": "admin",
  "role_id": 1,
  "individual_id": 1,
  "created": "2022-01-05T11:19:26+00:00",
  "modified": "2022-01-05T11:19:26+00:00",
  "organisation_id": 1,
  "organisation": {
    "id": 1,
    "uuid": "c99506a6-1255-4b71-afa5-7b8ba48c3b1b",
    "created": "2022-01-05T11:19:26+00:00",
    "modified": "2022-01-05T11:19:26+00:00",
    "tags": [
      {
        "id": 1,
        "name": "white",
        "namespace": "tlp",
        "colour": "FFFFFF",
        "text_colour": "white",
        "created": "2022-01-05T11:19:26+00:00",
        "modified": "2022-01-05T11:19:26+00:00"
      }
    ]
  },
  "individual": {
    "id": 1,
    "uuid": "c99506a6-1255-4b71-afa5-7b8ba48c3b1b",
    "email": "user@example.com",
    "first_name": "John",
    "last_name": "Doe",
    "full_name": "John Doe",
    "position": "Security Analyst",
    "tags": [
      {
        "id": 1,
        "name": "white",
        "namespace": "tlp",
        "colour": "FFFFFF",
        "text_colour": "white",
        "created": "2022-01-05T11:19:26+00:00",
        "modified": "2022-01-05T11:19:26+00:00"
      }
    ],
    "created": "2022-01-05T11:19:26+00:00",
    "modified": "2022-01-05T11:19:26+00:00"
  },
  "role": {
    "id": 1,
    "name": "admin"
  }
}