How to setup when a conditional script in forgerock mapping in the added property that will satisfy the following:
- Source is active while target is active, after running a reconciliation, both should have active status.
- Source is active while target is inactive, after running a reconciliation, target should be inactive while source is active.
- Source is inactive while target is inactive, after running a reconciliation, both will have an inactive after reconciliation.
- Source is inactive while target is active, after running a reconciliation, both will have an inactive after reconciliation.
- Source is active while target is inactive, after running a reconciliation, both will have an active status after reconciliation.
I have this script, but it doesn’t work for the 5th case.
if (target.accountStatus === 'inactive') {
false; // Prevent update
} else {
true; // Allow update
New contributor
Joyouess is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.