title: Account Attributes Changed
type: object
required:
- identity
- source
- account
- changes
properties:
  identity:
    required:
    - id
    - type
    - name
    allOf:
    - $ref: '../../../../v3/schemas/BaseReferenceDto.yaml'
    description: The identity whose account attributes changed.
    properties:
      type:
        enum:
        - "IDENTITY"
        example: "IDENTITY"
        description: The type of object that is referenced
  source:
    required:
    - id
    - type
    - name
    type: object
    description: The source that contains the account.
    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:
    type: object
    description: Details of the account where the attributes changed.
    required:
    - id
    - uuid
    - name
    - nativeIdentity
    - type
    properties:
      id:
        type: string
        description: SailPoint generated unique identifier.
        example: 52170a74-ca89-11ea-87d0-0242ac130003
      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
      name:
        type: string
        description: Name of the account.
        example: john.doe
      nativeIdentity:
        type: string
        description: Unique ID of the account on the source.
        example: "cn=john.doe,ou=users,dc=acme,dc=com"
      type:
        enum:
        - ACCOUNT
        description: The type of the account
        example: ACCOUNT
  changes:
    type: array
    description: A list of attributes that changed.
    items:
      type: object
      required:
      - attribute
      - oldValue
      - newValue
      properties:
        attribute:
          type: string
          description: The name of the attribute.
          example: sn
        oldValue:
          description: The previous value of the attribute.
          nullable: true
          oneOf:
          - type: string
          - type: boolean
          - type: array
            items:
              nullable: true
              type: string
          example: doe
        newValue:
          description: The new value of the attribute.
          nullable: true
          oneOf:
          - type: string
          - type: boolean
          - type: array
            items:
              nullable: true
              type: string
          example: ryans
