Pre/Post-Scripts

One script can be called before a Connector for Top Secret function executes and another script (or the same one) can be called after the Connector for Top Secret function executes. The scripts are referred to as:

  • Pre-script – This script is run immediately before the Connector for Top Secret function executes.

  • Post-script – This script is run immediately after the Connector for Top Secret function executes.

The Connector for Top Secret execution of the functions is as follows:

  1. If a pre-script is specified and should be executed, the Connector for Top Secret invokes it. Otherwise, execution of the Connector for Top Secret function begins from step 3.

  2. The return code of the pre-script is checked. If the script has returned SKIP or FATAL, the Connector for Top Secret does not invoke the functions and execution skips to step 4.

  3. If the Connector for Top Secret function is to be invoked, it is called.

  4. If a post-script is specified and should be executed, the Connector for Top Secret invokes it, regardless of the return codes from the pre-script and the actual Connector for Top Secret function.

  5. The final return code is the return code of the last item (Pre/Post-script or actual Connector for Top Secret) that was executed.

  6. If both of the following conditions are satisfied:

    • The Connector function is an ADD or UPDATE function.

    • A GET post-script is specified for the object and should be executed.

    Connector for Top Secret invokes the GET post-script after invoking any ADD or UPDATE Pre/Post-scripts required by the function. This is done to synchronize the Managed System database with the SailPoint database.