Click or drag to resize

UserGroupSelectionServicesGetUserGroupsForWorkflowAdd Method


Retrieves the collection of Users or User Groups available to assign the Page to, when Page is added to Workflow.

Namespace: IngeniuxCMService
Assembly: IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.6.492
Syntax
public XHRServiceResponseGeneric<UserGroupSelectionData> GetUserGroupsForWorkflowAdd(
	string pageId,
	string workflowId,
	string transitionId,
	bool getGroups
)

Parameters

pageId  String
Id of the Page that will be added to Workflow
workflowId  String
Id of the Workflow Definition the Page will be added to
transitionId  String
Id of the workflow transition the page is being added to.
getGroups  Boolean
Whether to retrieve Users or User Groups

Return Value

XHRServiceResponseGenericUserGroupSelectionData

Collection of basic information of either Users and User Groups

Example
Sample JSON return - Users
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "groupName": "",
        "groups": [],
        "users": [{
            "name": "abusbin",
            "active": false,
            "email": "",
            "lastLogin": null,
            "userId": "INGENIUX\\abusbin"
        }, {
            "name": "author",
            "active": false,
            "email": "",
            "lastLogin": "2014-01-20",
            "userId": "ingeniux\\author"
        }, {
            "name": "t",
            "active": false,
            "email": "t@i.com",
            "lastLogin": null,
            "userId": "t"
        }, {
            "name": "Turtle Master",
            "active": false,
            "email": "awang@ingeniux.com",
            "lastLogin": "2014-01-27",
            "userId": "INGENIUX\\awang"
        }]
    }
}
Example
Sample JSON return - User Groups
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "groupName": null,
        "groups": [{
            "name": "Administrators",
            "active": true,
            "groupId": "UserGroup\/1",
            "id": "UserGroup\/1",
            "userRights": [32, 0]
        }, {
            "name": "Authors",
            "active": true,
            "groupId": "UserGroups\/1",
            "id": "UserGroups\/1",
            "userRights": [1355393, 511]
        }],
        "users": []
    }
}
Remarks

If Page or Workflow Defintion doesn't exist, returns error status

See Also