Queries /api/group and returns an empty array if user.groupId is undefined