add getting groups from api