Not sure how you want to handle groups, but it could just be user_meta.
Regardless, you could use Gravity Forms + user registration add-on to process a user registration and determine what group the user should be added to. This should work even if you are using third-party hooks.
If it's simple user_meta, you can just check for that wherever you want to limit membership, and avoid stacking up tons of third party plugins.