Identity Cloud

Manage scripts through the AM admin UI

The following procedures describe how to create, modify, and delete scripts using the AM admin UI.

Create scripts

  1. In the AM admin UI, go to Realms > Realm Name > Scripts, and click New Script.

    The New Script page appears.

  2. Specify a name for the script.

  3. Select the type of script from the Script Type drop-down list.

  4. For Library or Decision node script for authentication trees scripts, select Next Generation as the Evaluator Version to use the latest bindings.

  5. Click Create.

    The Script Name page appears.

  6. Enter values on the Script Name page as follows:

    • Description: (optional) Enter a description of the script.

    • Language: Choose JavaScript. This is the only supported language in Identity Cloud.

    • Script: Write or paste in the script source code.

      On supported browsers, you can click Upload, go to the script file, and click Open to upload the contents to the Script field.

  7. Click Validate to check for compilation errors in the script.

    Correct any compilation errors, and revalidate the script until all errors have been fixed.

  8. Click Save Changes.

Modify scripts

  1. In the AM admin UI, go to Realms > Realm Name > Scripts.

  2. Select the script you want to modify from the list of scripts.

    The Script Name page appears.

  3. Modify values on the Script Name page as needed.

    Note that if you change the Script Type, existing code in the script is replaced.

  4. If you modified the code in the script, click Validate to check for compilation errors.

    Correct any compilation errors, and revalidate the script until all errors have been fixed.

  5. Click Save Changes.

Delete scripts

  1. In the AM admin UI, go to Realms > Realm Name > Scripts.

  2. Choose one or more scripts to delete by activating the checkboxes in the relevant rows.

    Take care to check whether the script is used by another script if you are deleting a library script.

  3. Click Delete.

Copyright © 2010-2024 ForgeRock, all rights reserved.