public. Return a list of users in a group
| Name | Type | Description |
| groupid | string | either an integer group ID or "=" followed by a double uri-encoded group name |
| Name | Type | Description |
| activatedfilter | bool? | Search for users by their active status |
| authenticate | bool? | Force authentication for request (default: false) |
| limit | int? | Number of entries to retrieve. Default: 100 |
| offset | int? | Number of entries to skip. Default: 0 |
| rolefilter | string? | Search for users by a role name |
| sortby | {id, username, nick, email, fullname, date.lastlogin, status, role, service}? | Sort field. Prefix value with '-' to sort descending. default: No sorting |
| usernamefilter | string? | Search for users by name or part of a name |
| Name | Value | Description |
| BadRequest | 400 | Invalid input parameter or request body |
| Forbidden | 403 | Read access is required |
| NotFound | 404 | Requested group could not be found |
| Ok | 200 | Request completed successfully |
Output:
<users count="{int}" href="{uri}">
<user id="{int}" href="{uri}">
<nick>{text}</nick>
<username>{text}</username>
<email>{text}</email>
</user>
...
</users>
Groups provide the ability to associate a collection of users with a predefined role.
The following code example retrieves the users in the group with ID 1:
Plug p = Plug.New("http://deki-hayes/@api/deki");
p.At("users", "authenticate").WithCredentials("admin", "password").Get();
p.At("groups", "1", "users").Get();
Sample response indicating that the group contains the user "user1":
<users count="1" href="http://deki-hayes/@api/deki/groups/1/users">
<user id="3" href="http://deki-hayes/@api/deki/users/3">
<nick>user1</nick>
<username>user1</username>
<email>user1@mindtouch.com</email>
</user>
</users>