No, but you can:
-
Create a simple script that reads from your database and setup all the groups on Discourse using the API
-
Pass group membership along on the SSO payload.
SSO is easier, the only problem is that membership is only updated on login.