Using Roles in Workflows

Windows Workflow Foundation provides a mechanism for role-based access for all activities that support data input. The workflow author has full control over creating roles and role collections. This enables the author to supply the necessary authorization mechanism to validate a caller's role before the activity is executed.

Some of the Windows Workflow Foundation activities, such as WebServiceInputActivity and HandleExternalEventActivity, provide properties to get or set a collection of roles.

To help in the development of workflows using Active Directory, Windows Workflow Foundation supplies an out-of-box mechanism for creating Active Directory-backed roles. For information about .NET Framework-based security and Active Directory, see the MSDN Library.

For more information about roles, see the WebWorkflowRole, WorkflowRole, and ActiveDirectoryRole classes of the System.Workflow.Activities namespace in the Windows Workflow Foundation Class Library reference. For an example of how to use roles, see Roles.

See Also

Reference

WorkflowRole
WebWorkflowRole
ActiveDirectoryRole
WebServiceInputActivity

Concepts

Security Considerations for Workflows

Other Resources

Developing Workflows