MindTouch Developer Center > MindTouch Deki > API Reference > GET:groups/{groupid}/users

GET:groups/{groupid}/users

Overview

public. Return a list of users in a group

Uri Parameters
NameTypeDescription
groupidstringeither an integer group ID or "=" followed by a double uri-encoded group name
Query Parameters
NameTypeDescription
limitint?Number of entries to retrieve. Default: 100
offsetint?Number of entries to skip. Default: 0
sortby{id, username, nick, email, fullname, date.lastlogin, status}?Sort field. Prefix value with '-' to sort descending. default: No sorting
Return Codes
NameValueDescription
BadRequest400Invalid input parameter or request body
Forbidden403Read access is required
NotFound404Requested group could not be found
Ok200Request completed successfully

Message Format

Output:

<users count="{int}" href="{uri}">
    <user id="{int}" href="{uri}">
        <nick>{text}</nick> 
        <username>{text}</username> 
        <email>{text}</email> 
    </user>
    ...
</users>

Implementation Notes

Groups provide the ability to associate a collection of users with a predefined role.

Code Samples

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>
Tag page
You must login to post a comment.
Powered by MindTouch Deki Enterprise Edition v.8.08 RC2