Overview

public. Retrieve list of groups.

Uri Parameters

None

Query Parameters
NameTypeDescription
authenticatebool?Force authentication for request (default: false)
authproviderint?Return groups belonging to given authentication service id
groupnamefilterstring?Search for groups by name or part of a name
limitint?Number of entries to retrieve. Default: 100
offsetint?Number of entries to skip. Default: 0
sortby{id, name, role, service}?Sort field. Prefix value with '-' to sort descending. default: No sorting
Return Codes
NameValueDescription
BadRequest400Invalid input parameter or request body
Forbidden403Read access is required
Ok200Request completed successfully

Message Format

Output:

<groups count="{int}" href="{uri}">
    <group id="{int}" href="{uri}">
        <groupname>{text}</groupname> 
        <service.authentication id="{int}" href="{uri}" /> 
        <users count="{int}" href="{uri}" /> 
        <permissions.group>
            <operations mask="{int}">{text}</operations> 
            <role id="{int}" href="{uri}">{text}</role> 
        </permissions.group>
    </group>
</groups>

Implementation Notes

Groups provide the ability to associate a collection of users with a predefined role.  Use GET:site/roles to retrieve a list of all roles currently defined on the site.

Use POST:groups to add or modify a group and DELETE:groups/{groupid} to remove a specified group.

Code Samples

C# Samples

 

Curl Samples

 

PHP Samples

 

Other Code Samples

 

Tag page (Edit tags)
    You must login to post a comment.