UserGroupSelectionServicesGetUsersAndGroups Method |
Namespace: IngeniuxCMService
public XHRServiceResponseGeneric<UsersAndGroupsList> GetUsersAndGroups( bool users, bool groups, bool extended = false, string groupId = "" )
Object containing collection of Users and User Groups
{
"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
}]
}
}If groupId is provided, but the Group doesn't exist, returns empty Users list.