MemberProfilePage_Controller::getSettableGroupIdsFrom
Gets the list of groups that can be set after the submission of a particular form
This works around the problem with the checkboxsetfield which doesn't validate that the groups that the user has selected are not validated against the list of groups the user is allowed to choose from.