After migrating a Yahoo group to Discourse, danb35 encountered a system message indicating 385 users waiting for approval, despite no users being visible in the review queue. The issue was caused by old, invalid, or deceased users. tshenry suggested setting a site setting to -1 to disable the reminder or deleting/approving users from the command line.
tshenry provided a step-by-step solution to bulk-approve users using the Rails console. The solution involved taking a site backup, entering the Rails console, and running Ruby commands to approve pending users. danb35 confirmed the solution worked.
Later, Canapin asked about mass-disapproving users, as they imported a vBulletin forum with 100 pending spam accounts.
About 8 months ago, I migrated a Yahoo group to a new Discourse installation by downloading .mbox files from Yahoo and importing them into Discourse. The import went well and, though not an especially-active community, the users seem to like the new format. But the old group had been around for nearly 20 years, which leads to its own issues.
Many of the members of the group over its lifespan have email addresses that are no longer valid (and in some cases, they have died). And this may be why I’m getting a system message periodically telling me there are somewhere around 385 users waiting for approval, like this:
The only downside is that you won’t get reminded if there are pending users that have been waiting for the specified number of hours. As long as someone is usually around that can approve new users, it shouldn’t be a problem.
The alternative would be to either delete or approve the users from the command line. Let me know if one of these approaches is preferred. I can work up the commands for you on either.