{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gloat/json-schema/gloat-user-role-assignment-schema.json",
  "title": "user_role_assignment",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gloat-rbac-groups-roles-api-openapi.yml#/components/schemas/user_role_assignment",
  "type": "object",
  "properties": {
    "user_id": {
      "type": "string"
    },
    "roles": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "granted_group": {
            "type": "number",
            "description": "id of the granted group"
          },
          "target_group": {
            "type": "number",
            "description": "id of the target group"
          }
        }
      }
    },
    "lastLogin": {
      "type": "number",
      "description": "last login in epoch"
    },
    "status": {
      "type": "string",
      "description": "User Status:\n * `AC` - Active\n * `TR` - Terminated\n * `IA` - Inactive\n * `SU` - Suspended\n * `AP` - Approved\n * `RQ` - Requested\n * `DE` - Deleted"
    }
  }
}