Implement documented groups API.