I checked my logs and notices that users were being deleted because they were inactive.
Is there any way I can turn this setting off?
The only reason i want to do this is because I export the emails of all my users and use it for email marketing my blogs.
Alternatively, if anyone knows a query which will let me get a list of all the deleted users and their emails, that would be extremely helpful!
Inactive users don’t have valid, confirmed emails, so your request makes no sense. I could sign up with ronald.mcdonald@mcdonalds.com and … you’d send marketing email to that address?
Are you asking me if you have created broken SSO? It’s possible, yes (especially if you indicate that the parent site has validated email, but in fact does not. This is extraordinarily dangerous since any user can sign up as any email address in the system.). Should you create broken SSO? No.
This may not always be the case at least when it comes to using WP Discourse for SSO.
We’re using WP Discourse + WooCommerce for subscription / membership signups, and I see in our logs we have many Discourse users being auto-deleted by system. We add new WP subscribers to a custom Discourse group using add_user_to_discourse_group in WP Discourse, which as I understand it creates the user, but inactive / pending email verification in Discourse.
Sounds like this can happen with WordPress whenever you’re using a signup flow that’s different from the WP default (for example with Woo or a membership plugin), and therefore still requires email validation on the Discourse end as mentioned here: Auto activated accounts for WP Discourse SSO?
In this case this behavior (auto-purge inactive users) seems okay, as it represents people who signed up on the WP site but never got around to using Discourse. Just thinking through this further…I assume when an inactive account is automatically purged, if that user comes back later they will still be able to activate a Discourse account with the same username? Hope that’s how it works anyway!