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

Guadagnino Cristiano guadagnino.cristiano at creval.it
Tue Feb 18 09:58:29 EST 2014


I'm sorry to bump this thread, but I never had any feedback, neither 
positive nor negative.
Is this something supposed to work in 4.2.2 or not?

Thank you
Bye
Cris


Guadagnino Cristiano ha scritto:
> Hi Alex
>
> -----Messaggio originale-----
> Da: Alex Vandiver
> Inviato: Tue Feb 04 2014 18:46:32 GMT+0100 (CET)
> A: rt-users at lists.bestpractical.com
> Oggetto: Re: [rt-users] REST call to retrieve list of groups
>
>> 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
>>
> Alex, maybe I misunderstood you message.
>
> I have just completed the upgrade to 4.2.2 (from 4.2.1), so I tried
> pasting this url in the browser:
>
> http://amended/REST/1.0/search/groups
>
> and this is the reply I got:
>
> no value sent for required parameter 'query'
> Stack:
>     [/opt/rt4/share/html/REST/1.0/autohandler:54]
>     [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:680]
>     [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:368]
>     [/opt/rt4/share/html/autohandler:53]
>
> What am I missing?
>
> T.I.A.
>
> Bye
> Cris



More information about the rt-users mailing list