title: Account Correlated
type: object
required:
- identity
- source
- account
- attributes
properties:
  identity:
    required:
    - type
    - name
    - id
    allOf:
    - $ref: '../../../../v3/schemas/BaseReferenceDto.yaml'
    description: The identity that the account correlated with.
    properties:
      type:
        enum:
        - IDENTITY
        description: The type of object that is referenced
        example: IDENTITY
  source:
    required:
    - id
    - type
    - name
    type: object
    description: The source from which the account came from.
    properties:
      id:
        description: ID of the object to which this reference applies
        type: string
        example: 4e4d982dddff4267ab12f0f1e72b5a6d
      type:
        type: string
        enum:
        - SOURCE
        example: SOURCE
        description: The type of object that is referenced
      name:
        type: string
        description: Human-readable display name of the object to which this reference applies
        example: Corporate Active Directory
  account:
    required:
    - id
    - name
    - nativeIdentity
    - type
    allOf:
    - $ref: '../../../../v3/schemas/BaseReferenceDto.yaml'
    description: The account that was correlated.
    properties:
      type:
        enum:
        - ACCOUNT
        description: The type of object that is referenced
        example: ACCOUNT
      nativeIdentity:
        type: string
        description: Unique ID of the account on the source.
        example: "cn=john.doe,ou=users,dc=acme,dc=com"
      uuid:
        nullable: true
        type: string
        description: The source's unique identifier for the account. UUID is generated by the source system.
        example: 1cb1f07d-3e5a-4431-becd-234fa4306108
  attributes:
    type: object
    description: The attributes associated with the account.  Attributes are unique per source.
    additionalProperties: true
    example: {
        "sn": "doe",
        "givenName": "john",
        "memberOf": [
            "cn=g1,ou=groups,dc=acme,dc=com",
            "cn=g2,ou=groups,dc=acme,dc=com",
            "cn=g3,ou=groups,dc=acme,dc=com"
        ]
    }
  entitlementCount:
    type: integer
    format: int32
    description: The number of entitlements associated with this account.
    example: 0