Mapping of groups in social login

hi there,

I’d need a way to let only certain OAuth2.0 (Keycloak) users connect to Nextcloud, for example only users belonging to the group “nc”,

but then I want all the Keycloak groups mapped to the corresponding Nextcloud groups automatically,

is there a way to do this without having to explicitly declare a mapping list in social login parameters?

Thank you