Click or drag to resize

UserGroupSelectionServicesGetUsersAndGroups Method


Retrieves collection of Users and UserGroups.

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.169
Syntax
public XHRServiceResponseGeneric<UsersAndGroupsList> GetUsersAndGroups(
	bool users,
	bool groups,
	bool extended = false,
	string groupId = ""
)

Parameters

users
Type: SystemBoolean
Whether to return users
groups
Type: SystemBoolean
Whether to return user groups
extended (Optional)
Type: SystemBoolean
Whether to produce extended information or basic information on each User/User Group
groupId (Optional)
Type: SystemString
Id of the User Group to filter User with. If provided, only Users belong to the Group are returned.

Return Value

Type: XHRServiceResponseGenericUsersAndGroupsList

Object containing collection of Users and User Groups

Examples
Sample JSON return - extended is false
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "groups": [{
            "name": "Administrators",
            "active": true,
            "groupId": "UserGroup\/1",
            "id": "UserGroup\/1",
            "userRights": [32, 0],
            "pcrsCount": 0,
            "usersCount": 0,
            "wfDefsCount": 0
        }, {
            "name": "Authors",
            "active": true,
            "groupId": "UserGroups\/1",
            "id": "UserGroups\/1",
            "userRights": [1355393, 511],
            "pcrsCount": 0,
            "usersCount": 0,
            "wfDefsCount": 0
        }],
        "users": [{
            "name": "abusbin",
            "active": false,
            "email": "",
            "lastLogin": "",
            "userId": "INGENIUX%5Cabusbin",
            "groupsCount": 0,
            "integratedMembershipProvider": null,
            "readLanguages": null,
            "receiveWorkFlowNotificationMail": false,
            "writeLanguages": null
        }, {
            "name": "author",
            "active": false,
            "email": "",
            "lastLogin": "2014-01-20",
            "userId": "ingeniux%5Cauthor",
            "groupsCount": 0,
            "integratedMembershipProvider": null,
            "readLanguages": null,
            "receiveWorkFlowNotificationMail": false,
            "writeLanguages": null
        }, {
            "name": "t",
            "active": false,
            "email": "t%40i.com",
            "lastLogin": "",
            "userId": "t",
            "groupsCount": 0,
            "integratedMembershipProvider": null,
            "readLanguages": null,
            "receiveWorkFlowNotificationMail": false,
            "writeLanguages": null
        }, {
            "name": "Turtle%20Master",
            "active": false,
            "email": "awang%40ingeniux.com",
            "lastLogin": "2014-01-27",
            "userId": "INGENIUX%5Cawang",
            "groupsCount": 0,
            "integratedMembershipProvider": null,
            "readLanguages": null,
            "receiveWorkFlowNotificationMail": false,
            "writeLanguages": null
        }]
    }
}
Remarks

If groupId is provided, but the Group doesn't exist, returns empty Users list.

See Also