To import a script file, in the Console tree, right-click Script Modules, and click Import. This displays the Import Script dialog where you can select and open a script file.
To import a script file, in the Console tree, right-click Script Modules, and click Import. This displays the Import Script dialog where you can select and open a script file.
To create a new script module, in the Console tree, right-click Script Modules and select New > Script Module. This opens the New Object - Script Module Wizard.
TIP: It is advisable to store custom script modules in a separate container. You can create a container as follows: Right-click Script Modules in the Console tree, and select New > Scripts Container. After you have created a container, you can have the wizard add a script module to that container rather than directly to Script Modules: right-click the container in the console tree and select New > Script Module.
The first page of the wizard looks as shown in the following figure.
Figure 75: Script module: Creating a script
Type a name and description for the new script module, and select script language. Then click Next. The next page looks as shown in the following figure.
Figure 76: Script Module: Policy script
On this page, select a type of the script module. Select Policy script to create a script that will be used as part of the Policy Object. The other options are:
Scheduled Task script: Script that you can schedule to run on the Administration Service.
Library script: Script to be used by other script modules. You can collect commonly used functions into a standalone script module and include it in other modules requiring those functions. This allows you to re-use some pieces of existing scripts, thus reducing development effort and time.
Select Policy script and click Next. This displays the page with a list of event handler functions shown in the following figure.
Figure 77: Script Module: Event handler functions
On this page, select functions to be used in the script, and click Next. Then, click Finish to create the script module.
For instructions and guidelines on how to develop policy scripts, refer to the Active Roles Software Development Kit (SDK).
In the Active Roles Console, you can view and modify scripts, both imported and newly created.
To edit a script, select it in the Console tree under Configuration/Script Modules. You can view and modify the script in the details pane. To start editing the script, right-click the script module and click Edit Script. Then, click Yes to confirm the operation. You can make changes to the script in the details pane.
When you are editing the script, a red asterisk is displayed next to the name of the script module in the Console tree. This indicates the changes you are making to the script are not saved. You can undo your changes or save them:
To undo changes, press CTRL+Z. (The redo function is also available: press CTRL+Y.)
To undo all unsaved changes, right-click the script module and click Discard Changes. (This operation is irreversible: if you perform this command, your changes to the script are lost.)
To save the changes, right-click the script module and click Save Script on Server.
When the script module is ready, you can proceed to configuring a script policy that will use the prepared script module.
Active Roles allows you to attach a debugger to the Administration Service’s script host for a given policy script or scheduled task script. When the script is being executed by the specified Administration Service, the debugger may help you identify and isolate problems, if any, with the policy or task based on that script.
To enable debugging of a script in the Active Roles Console, display the Properties dialog for the script module containing the script, go to the Debugging tab, and select the Enable debugging check box. From the Debug on server list, select the Administration Service where you want the debugger to run.
To configure a script-based policy, select Script Execution on the Select Policy Type page in the New Provisioning Policy Object Wizard, in the New Deprovisioning Policy Object Wizard, or in the Add Policy Wizard. Then, click Next to display the Script Module page.
Figure 78: Script Module: Executing a script
On this page, click Select a script module and select the script module. Then, click Next and follow the instructions in the wizard to create the Policy Object.
© 2024 One Identity LLC. ALL RIGHTS RESERVED. 이용 약관 개인정보 보호정책 Cookie Preference Center