membergroupsById now returns only an array of groups

Signed-off-by: emanuele <emanuele45@gmail.com>