The Group SSO (gsso) module allows you to manage group permissions based on a selected user attribute coming from external Identity Manager using protocols like SAML, OpenIDC and others.Currently only working with the SAML protocol.https://www.drupal.org/project/gsso