I'm search about this, but with focos on SAML. I use Keycloak with SP. I didn't find anything about this.
On github I found this link:
https://github.com/GerritCodeReview/plugins_saml/tree/master. In this link show the parametrer memberOfAttr, but I configured this on gerrit.config, unfortunaly its don't work.