Setting the Security Mode
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
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
- 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.
- Select a workflow process from the Solution Explorer.
- In the Properties Grid, the PrivilegedContext property is set to True by default.
–or-
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.
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.
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