getgroups endpoint now returns proper JSON