As far as doing this through the wp-discourse plugin goes, adding a user to a group is very straightforward. The hard part would be figuring out how to associate the user with a Discourse group before they login through SSO.
I think the easiest way to approach it would be to add a required ‘group’ field to the WordPress registration form. It could be a drop-down list of the available Discourse groups.