{
  "name": "Workforce",
  "description": "Unified workforce identity profile consolidating employees and contingent workers across authoritative stints",
  "owner": {
    "type": "IDENTITY",
    "id": "c3d4e5f6a7b84910bc2d3e4f5a6b7c8d",
    "name": "IAM Platform Admin"
  },
  "priority": 10,
  "authoritativeSource": {
    "type": "SOURCE",
    "id": "a1b2c3d4e5f647189a0b1c2d3e4f5a6b",
    "name": "Enterprise HR"
  },
  "identityRefreshRequired": false,
  "hasTimeBasedAttr": false,
  "identityAttributeConfig": {
    "enabled": true,
    "attributeTransforms": [
      {
        "identityAttributeName": "uid",
        "transformDefinition": {
          "type": "reference",
          "attributes": {
            "id": "Workforce - uid",
            "input": {
              "type": "accountAttribute",
              "attributes": {
                "sourceName": "Enterprise HR",
                "sourceId": "a1b2c3d4e5f647189a0b1c2d3e4f5a6b",
                "attributeName": "WORKER_ID"
              }
            }
          }
        }
      },
      {
        "identityAttributeName": "identificationNumber",
        "transformDefinition": {
          "type": "reference",
          "attributes": {
            "id": "Workforce - identificationNumber",
            "input": {
              "type": "accountAttribute",
              "attributes": {
                "sourceName": "Enterprise HR",
                "sourceId": "a1b2c3d4e5f647189a0b1c2d3e4f5a6b",
                "attributeName": "WORKER_ID"
              }
            }
          }
        }
      },
      {
        "identityAttributeName": "universalPersonId",
        "transformDefinition": {
          "type": "accountAttribute",
          "attributes": {
            "sourceName": "Enterprise HR",
            "sourceId": "a1b2c3d4e5f647189a0b1c2d3e4f5a6b",
            "attributeName": "IMMUTABLE_PERSON_ID"
          }
        }
      },
      {
        "identityAttributeName": "email",
        "transformDefinition": {
          "type": "reference",
          "attributes": {
            "id": "Workforce - email",
            "input": {
              "type": "accountAttribute",
              "attributes": {
                "sourceName": "Enterprise HR",
                "sourceId": "a1b2c3d4e5f647189a0b1c2d3e4f5a6b",
                "attributeName": "EMAIL_ADDRESS_WORK"
              }
            }
          }
        }
      },
      {
        "identityAttributeName": "firstname",
        "transformDefinition": {
          "type": "reference",
          "attributes": {
            "id": "Workforce - firstname",
            "input": {
              "type": "accountAttribute",
              "attributes": {
                "sourceName": "Enterprise HR",
                "sourceId": "a1b2c3d4e5f647189a0b1c2d3e4f5a6b",
                "attributeName": "FIRST_NAME"
              }
            }
          }
        }
      },
      {
        "identityAttributeName": "lastname",
        "transformDefinition": {
          "type": "reference",
          "attributes": {
            "id": "Workforce - lastname",
            "input": {
              "type": "accountAttribute",
              "attributes": {
                "sourceName": "Enterprise HR",
                "sourceId": "a1b2c3d4e5f647189a0b1c2d3e4f5a6b",
                "attributeName": "LAST_NAME"
              }
            }
          }
        }
      },
      {
        "identityAttributeName": "displayName",
        "transformDefinition": {
          "type": "reference",
          "attributes": {
            "id": "Workforce - DisplayName",
            "input": {
              "type": "accountAttribute",
              "attributes": {
                "sourceName": "Enterprise HR",
                "sourceId": "a1b2c3d4e5f647189a0b1c2d3e4f5a6b",
                "attributeName": "WORKER_NAME"
              }
            }
          }
        }
      },
      {
        "identityAttributeName": "cloudLifecycleState",
        "transformDefinition": {
          "type": "reference",
          "attributes": {
            "id": "Workforce - cloudLifecycleState",
            "input": {
              "type": "accountAttribute",
              "attributes": {
                "sourceName": "Enterprise HR",
                "sourceId": "a1b2c3d4e5f647189a0b1c2d3e4f5a6b",
                "attributeName": "ACTIVE"
              }
            }
          }
        }
      },
      {
        "identityAttributeName": "workerType",
        "transformDefinition": {
          "type": "reference",
          "attributes": {
            "id": "Workforce - workerType",
            "input": {
              "type": "accountAttribute",
              "attributes": {
                "sourceName": "Enterprise HR",
                "sourceId": "a1b2c3d4e5f647189a0b1c2d3e4f5a6b",
                "attributeName": "WORKER_TYPE"
              }
            }
          }
        }
      },
      {
        "identityAttributeName": "department",
        "transformDefinition": {
          "type": "reference",
          "attributes": {
            "id": "Workforce - CrossSource Department",
            "input": {
              "type": "accountAttribute",
              "attributes": {
                "sourceName": "Enterprise HR",
                "sourceId": "a1b2c3d4e5f647189a0b1c2d3e4f5a6b",
                "attributeName": "DEPARTMENT"
              }
            }
          }
        }
      },
      {
        "identityAttributeName": "manager",
        "transformDefinition": {
          "type": "reference",
          "attributes": {
            "id": "Workforce - manager",
            "input": {
              "type": "accountAttribute",
              "attributes": {
                "sourceName": "Enterprise HR",
                "sourceId": "a1b2c3d4e5f647189a0b1c2d3e4f5a6b",
                "attributeName": "MANAGER_ID"
              }
            }
          }
        }
      },
      {
        "identityAttributeName": "startDate",
        "transformDefinition": {
          "type": "reference",
          "attributes": {
            "id": "Workforce - startDate",
            "input": {
              "type": "accountAttribute",
              "attributes": {
                "sourceName": "Enterprise HR",
                "sourceId": "a1b2c3d4e5f647189a0b1c2d3e4f5a6b",
                "attributeName": "HIREDATE"
              }
            }
          }
        }
      },
      {
        "identityAttributeName": "endDate",
        "transformDefinition": {
          "type": "reference",
          "attributes": {
            "id": "Workforce - endDate",
            "input": {
              "type": "accountAttribute",
              "attributes": {
                "sourceName": "Enterprise HR",
                "sourceId": "a1b2c3d4e5f647189a0b1c2d3e4f5a6b",
                "attributeName": "TERMINATION_DATE"
              }
            }
          }
        }
      },
      {
        "identityAttributeName": "legacyWorkerId",
        "transformDefinition": {
          "type": "accountAttribute",
          "attributes": {
            "sourceName": "Enterprise HR",
            "sourceId": "a1b2c3d4e5f647189a0b1c2d3e4f5a6b",
            "attributeName": "WORKER_ID",
            "accountSortDescending": false,
            "accountReturnFirstLink": true,
            "accountPropertyFilter": "(ACTIVE == \"0\")"
          }
        }
      }
    ]
  }
}
