You can create script modules using the Active Roles Console (also known as the MMC interface).
For more information on how to develop policy scripts, see the Active Roles SDK.
To create a script module
-
In the Console tree, navigate to Configuration > Script Modules.
-
Select the folder to which you want to add the script module.
TIP: To create a new folder, right-click Script Modules, and select New > Scripts Container.
-
Right-click the folder and select New > Script Module.
TIP: One Identity recommends storing custom script modules in a separate folder.
-
Specify the name and language of the module, then click Next.
-
In Select a script module type, click the type of the module to create. The following options are available:
-
To create a script that you can use as part of the Policy Object, select Policy script.
-
To create a script that you can schedule to run on the Administration Service, select Scheduled Task script.
-
To create a script that you can use in other script modules, select Library script.
NOTE: You can use the Library script to collect commonly used functions into a standalone script module and include it in other modules.
-
Select the Policy script type for the module, then select the event handlers that you want the module to include and click Next.
-
Click Finish.
You can import script modules using the Active Roles Console (also known as the MMC interface).
To import a script module
-
In the Console tree, navigate to Configuration > Script Modules.
-
Select the folder to which you want to add the script module.
TIP: To create a new folder, right-click Script Modules, and select New > Scripts Container.
-
Right-click the folder, and click Import.
TIP: One Identity recommends storing custom script modules in a separate folder.
-
Locate and select the script file that you want to import, and click Open.
You can export script modules using the Active Roles Console (also known as the MMC interface).
To export a script module
-
In the Console tree, navigate to Configuration > Script Modules.
-
Select the folder that contains the script module that you want to export.
-
In the details pane, right-click the script module, and select All Tasks > Export.
-
Select the location where you want to save the script, select the file format, then click Save.
You can edit script modules using the Active Roles Console (also known as the MMC interface).
To edit a script module
-
In the Console tree, navigate to Configuration > Script Modules.
-
Under Script Modules, select the folder that contains the script module that you want to edit.
-
In the details pane, right-click the script module and click Edit Script.
-
After you finished making changes to the script module, do one of the following:
-
To save your changes, click Action > Save Script on Server.
Alternatively, press Alt+S.
-
To close the script editor without saving your changes, right-click the script module that you are editing, then select Discard Changes.