Click or drag to resize

UserGroupSelectionServicesGetUsersAndGroups Method


Retrieves collection of Users and UserGroups.

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

Parameters

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

Return Value

XHRServiceResponseGenericUsersAndGroupsList

Object containing collection of Users and User Groups

Example
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