Improve groupids REST service