{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nexus/json-schema/nexus-saml-user-xo-schema.json",
  "title": "SamlUserXO",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nexus-security-management-saml-users-api-openapi.yml#/components/schemas/SamlUserXO",
  "required": [
    "status",
    "userId"
  ],
  "type": "object",
  "properties": {
    "userId": {
      "minLength": 1,
      "type": "string",
      "description": "The userid for the SAML user"
    },
    "firstName": {
      "type": "string",
      "description": "The first name of the SAML user"
    },
    "lastName": {
      "type": "string",
      "description": "The last name of the SAML user"
    },
    "emailAddress": {
      "type": "string",
      "description": "The email address of the SAML user",
      "format": "email"
    },
    "status": {
      "type": "string",
      "description": "The status of the SAML user (active, disabled)"
    },
    "roles": {
      "uniqueItems": true,
      "type": "array",
      "description": "The roles assigned to the SAML user",
      "items": {
        "type": "string",
        "description": "The roles assigned to the SAML user"
      }
    }
  }
}