Share via


Setting the Security Mode

A workflow process can run in either privileged or restricted mode. The Security Mode (PrivilegedContext property) regulates the types of scripts that can be executed from within your workflow process. The default is for a workflow process to run in privileged mode (PrivilegedContext = True).

Note   To run a workflow process in privileged mode, you must be a member of the Privileged Workflow Authors role, which is set under Component Services.

To set the security mode

  1. Open the Development Environment. Open an existing solution, or use File, New to create a workflow project. The solution, along with any of its projects and existing workflow processes, is displayed in the Solution Explorer.
  2. Select a workflow process from the Solution Explorer.
  3. In the Properties Grid, the PrivilegedContext property is set to True by default.

–or-

  1. From the View menu, select Property Pages. You also can right-click the workflow process in the Solution Explorer, and select Properties from the context menu.

  2. To specify privileged mode, select the Run workflow script in privileged author context check box. To specify restricted mode, clear the Run workflow script in privileged author context check box.

    **Caution   **If you select Run workflow script in privileged author context and you do not have the required permissions, the workflow process will not run. If this option is not selected and you have scripts that require privileged mode to execute, errors will be returned at run time.

  3. Click OK.

    Note   When the workflow process runs, membership in the Privileged Workflow Authors role is evaluated for the last person who modifies and saves a workflow process.

See Also

Setting the Project Properties for Exchange Server | Displaying the Project Properties | Setting the Default Workflow Process for Exchange Server | Enabling a Workflow Process for Exchange Server | Creating the Workflow | Troubleshooting: Workflow Creation Issues | Workflow Process Security Mode