[rt-users] REST call to retrieve list of groups

Alex Vandiver alexmv at bestpractical.com
Tue Feb 4 12:46:32 EST 2014


On Tue, 2014-02-04 at 11:21 +0000, Guadagnino Cristiano wrote:
> Hi all,
> I have found out that I can use this REST call:
> 
> http://my.rt.site/REST/1.0/group/<group_name>
> 
> to retrieve informations about a group (id, name, description, members).
> 
> However, I cannot find a REST way to retrieve the list of groups defined 
> on an RT instance.
> Is it possible?

RT 4.2.2 adds a search endpoint for users and groups:

        rt ls -t groups
        id: group/1238
        Name: RT hackers
        Description: RT hackers
        Disabled: 0
        
        --
        
        id: group/14255
        Name: BPS Staff
        Description: 
        Disabled: 0
        
        [...]

The endpoint is /REST/1.0/search/groups

 - Alex




More information about the rt-users mailing list