Click or drag to resize
WorkflowManager.GetUsersWhoCanApprove Method (TreeNode, SourcePoint, Boolean, Boolean, Boolean, String, String, Int32, String)
Returns list of all the users who can approve node in the current workflow step.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax
C#
public InfoDataSet<UserInfo> GetUsersWhoCanApprove(
	TreeNode node,
	SourcePoint sourcePoint,
	bool assigned,
	bool managers,
	bool administrators,
	string where = null,
	string orderBy = null,
	int topN = 0,
	string columns = null
)

Parameters

node
Type: CMS.DocumentEngine.TreeNode
Document node
sourcePoint
Type: CMS.WorkflowEngine.Definitions.SourcePoint
Step source point (for steps with multiple outgoing transitions)
assigned
Type: System.Boolean
Indicates if users assigned to the workflow steps should be get. Users in the generic roles are not included
managers
Type: System.Boolean
Indicates if users who have the manage workflow permission should be get
administrators
Type: System.Boolean
Indicates if users who are global administrators should be get
where (Optional)
Type: System.String
Where condition
orderBy (Optional)
Type: System.String
Order by clause
topN (Optional)
Type: System.Int32
Top N items
columns (Optional)
Type: System.String
List of columns to return

Return Value

Type: InfoDataSet<UserInfo>
Returns defined role users, Global administrators and users who have the Manage workflow permission for the document
See Also