Handle magic groups value in API