The server hosting our Discourse instance crashed and burned, and we have a only a pretty old Discourse backup.
The instance, which we restored, uses SSO with Drupal.
Question: between the time of the last backup and now, several users were deactivated in Drupal, so will correctly not be able to reconnect to Discourse (I assume).
But what about email notifications? We have already been told that some ex-users received some notifications. Is there a way to automatically make Discourse understand which users should not receive them anymore? I’d really like not to manually go through the list of users
To find the API calls you can see How to reverse engineer the Discourse API. Also, the topics on SSO should provide some info on how to have SSO master disable accounts. For you, though, the accounts are already disabled, so you’ll probably want to get a list of them . . . somehow . . . and then something like
Users.where(somehow get the users).update_all(active: false)
(That’s not exactly right, but that’s the idea.)
If it’s an emergency and you have a budget, my contact info is in my profile.
There is. You can probably find it in the wp-discourse plugin, but the easiest way to find it is to deactivate an account with the developer tools open and see what call it makes.