Exclude persons via source mapping
For more information, see Exclusions.
For the relevant source system, Edit a source system.
Go to the Person tab.
Add the
Excludedfield to person mappings by following the instructions in Map an additional field.
Click the
Excludedfield to expand it.
Select Fixed, Field, or Complex for the field type.
Fixed: When you select this field type and enable the Excluded toggle, all persons in this source system will be excluded. Do not use this field type if you only want to exclude certain persons.

Field: The field from your raw data should contain the boolean value
trueorfalse. Persons with atruevalue are excluded.Complex: Use Complex mappings to determine the exclusion status. The function must return a boolean value. For example:
function getEnabled() { if (source.Contracts[0].Function.Name === "CEO") { return true; } else { return false; } } getEnabled();
The following code can be used when testing Provisioning.
To test the business rules with a single person, set the
personNrvalue to the ID of the selected test person.To test the business rules for all persons in department, comment out the single-person test code, uncomment the
forloop, and adjust the contract field name and case value to match your source data.function getExcluded() { let contracts = source.Contracts; let exclude = true; //for loop to test with one department //for (let i = 0, l = contracts.Count; i < l; i++) { // let contract = contracts[i]; // switch (contract.pos_Dept_code) { // case "I&A": // exclude = false; // break; // } //} //code to test with one person let personNr = source.ExternalId if (personNr === '74330') { exclude = false; } return exclude; } getExcluded();
Affected persons will be excluded from Enforcement during the next snapshot. They are listed in the Excluded Persons pane in Business > Exclusions, and labeled with the Source indicator.

To re-include persons, Re-include a person.