Automatically Adding New Users (from WP integration) To A Group

I’m assuming you are using the WP Discourse plugin for SSO. That plugin has a couple of functions that can be used for managing Discourse group membership. Have a look at Managing Discourse group membership with WP Discourse SSO for details about how to use the functions. I’m going to update that topic soon to add a more general example . Let me know if anything in the topic is unclear.