Restrict Reconciliation to a Specific ID
You can restrict reconciliation to a specific record in much the same way as you restrict reconciliation by using queries.
To restrict reconciliation to a specific ID, use the
reconById action, instead of the
recon action when you call the reconciliation operation. Specify the ID with the
id parameter. Reconciling more than one ID with the
reconById action is not supported.
The following command reconciles only the user with ID
b3c2f414-e7b3-46aa-8ce6-f4ab1e89288c, for the mapping
managedUser_systemLdapAccounts. The command synchronizes this particular user account in LDAP with the data from the managed user repository. The example assumes that implicit synchronization has been disabled, and that a reconciliation operation is required to copy changes made in the repository to the LDAP system:
curl \ --header "Authorization: Bearer *token*" \ --header "Accept-API-Version: resource=1.0" \ --request POST \ "https://tenant-name.forgeblocks.com/openidm/recon?_action=reconById&mapping=managedUser_systemLdapAccounts&id=b3c2f414-e7b3-46aa-8ce6-f4ab1e89288c"
Reconciliation by ID takes the default reconciliation options that are specified in the mapping, so the source and target queries, and source and target phases apply equally to reconciliation by ID.