Hi !
We might be interested into contributing to the OAuth2 Basic plugin to assign users to Discourse groups on account creation and/or login.
For now, I found this post with some initial work by @mattdm, so we can start from here if it's still relevant.
Would you be interested with this feature?
Discuss this on our forum.