{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/beyond-identity/json-schema/beyond-identity-scimuser-schema.json",
  "title": "User",
  "description": "A user represents a human entity as defined by [RFC 7643 Section 4.1](https://www.rfc-editor.org/rfc/rfc7643#section-4.1). A user cooresponds to the identity resource in Beyond Identity.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/beyond-identity-scim-api-openapi.yml#/components/schemas/SCIMUser",
  "type": "object",
  "properties": {
    "schemas": {
      "type": "array",
      "description": "The list of schemas used to define the user. This must contain only the core User schema (\"urn:ietf:params:scim:schemas:core:2.0:User\").\n",
      "items": {
        "type": "string"
      }
    },
    "id": {
      "type": "string",
      "description": "The unique ID of the user. This is automatically generated on creation. This field is immutable and output-only.\n",
      "minLength": 1,
      "readOnly": true
    },
    "externalId": {
      "type": "string",
      "description": "The provisioning client's unique identifier for the resource."
    },
    "userName": {
      "type": "string",
      "minLength": 1,
      "description": "The unique username of the user.\n"
    },
    "displayName": {
      "type": "string",
      "minLength": 1,
      "description": "Display name of the User. This name is used for display purposes.\n"
    },
    "active": {
      "type": "boolean",
      "description": "Indicator for the user's administrative status. If true, the user has administrative capabilities.\n"
    },
    "emails": {
      "type": "array",
      "description": "The list containing the user's emails.",
      "items": {
        "type": "object",
        "description": "Definition of an email.",
        "properties": {
          "primary": {
            "type": "boolean",
            "description": "Indicator for the primary or preferred email address.\n\nOnly the primary email address is included on the response. All\nother provided email addresses will be ignored.\n"
          },
          "value": {
            "type": "string",
            "description": "The email address."
          }
        }
      }
    },
    "name": {
      "type": "object",
      "description": "Definition of the user's name.",
      "properties": {
        "givenName": {
          "type": "string",
          "description": "The given name of the user, or first name in most Western languages.\n"
        },
        "familyName": {
          "type": "string",
          "description": "The family name of the user, or last name in most Western languages.\n"
        }
      }
    },
    "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": {
      "title": "EnterpriseUserExtension",
      "description": "Defines attributes commonly used in representing users that belong to, or act on behalf of, a business or enterprise. The enterprise User extension is identified using the following schema URI: \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\".\n",
      "type": "object",
      "properties": {
        "employeeNumber": {
          "type": "string",
          "description": "A string identifier, typically numeric or alphanumeric, assigned to a person, typically based on order of hire or association with an organization as defined in [RFC 7643](https://datatracker.ietf.org/doc/html/rfc7643#section-4.3).\n"
        },
        "costCenter": {
          "type": "string",
          "description": "Identifies the name of a cost center as defined in [RFC 7643](https://datatracker.ietf.org/doc/html/rfc7643#section-4.3).\n"
        },
        "organization": {
          "type": "string",
          "description": "Identifies the name of an organization as defined in [RFC 7643](https://datatracker.ietf.org/doc/html/rfc7643#section-4.3).\n"
        },
        "department": {
          "type": "string",
          "description": "Identifies the name of a department as defined in [RFC 7643](https://datatracker.ietf.org/doc/html/rfc7643#section-4.3).\n"
        },
        "division": {
          "type": "string",
          "description": "Identifies the name of a division as defined in [RFC 7643](https://datatracker.ietf.org/doc/html/rfc7643#section-4.3).\n"
        },
        "manager": {
          "type": "object",
          "properties": {
            "value": {
              "type": "string",
              "description": "The \"id\" of the SCIM resource representing the user's manager as defined in [RFC 7643](https://datatracker.ietf.org/doc/html/rfc7643#section-4.3).\n"
            },
            "displayName": {
              "type": "string",
              "description": "The displayName of the user's manager. This attribute is OPTIONAL, and mutability is \"readOnly\" as defined in [RFC 7643](https://datatracker.ietf.org/doc/html/rfc7643#section-4.3).\n"
            }
          }
        }
      }
    },
    "meta": {
      "title": "Meta",
      "description": "Resource metadata as defined in [RFC 7643 Section 3.1](https://www.rfc-editor.org/rfc/rfc7643#section-3.1). This attribute is only populated on responses and is ignored on requests.\n",
      "type": "object",
      "properties": {
        "resourceType": {
          "type": "string",
          "description": "The name of the resource type of the resource."
        },
        "created": {
          "type": "string",
          "format": "date-time",
          "description": "Timestamp of when the resource was created.",
          "readOnly": true
        },
        "lastModified": {
          "type": "string",
          "format": "date-time",
          "description": "Timestamp of when the resource was last updated.",
          "readOnly": true
        },
        "location": {
          "type": "string",
          "description": "The URI of the resource being returned.",
          "readOnly": true
        },
        "version": {
          "type": "string",
          "description": "The version of the resource being returned. This is always \"W/0\".\n",
          "readOnly": true
        }
      },
      "required": [
        "resourceType",
        "created",
        "lastModified",
        "location",
        "version"
      ]
    }
  },
  "required": [
    "schemas"
  ]
}