A Discourse site may be configured to require that new users are approved before they can log in. This is most often used for private communities, but may also be used for public communities that simply wish to put limitations on who can join and participate in discussions.
Configuration
Check the must_approve_users site setting so that users can “apply” to join the community
(Optional) Check the login_required site setting if you want to ensure that your community is set to private. This will prevent anonymous users from viewing the content of your forum.
Signup flow
With the above configuration, here’s what the sign up flow looks like for a user joining your community:
User visits the forum and presses the Sign Up button (Screenshot below illustrates login_required enabled).
The user enters their account details and receives an activation e-mail in their inbox. After e-mail activation, they will see the following message on the forum:
Welcome to Discourse!
A moderator must manually approve your new account before you can access this forum. You’ll get an email when your account is approved!
If they attempt to log in at this point they will see a message on the login modal that says:
Your account hasn’t been approved yet. You will be notified by email when you are ready to log in.
Moderators will be immediately notified of pending user approvals through on-site notifications . If the request remains in the review queue long enough without being addressed, a reminder email will be sent out to all users with full Moderator status. The reminder email background job (PendingUsersReminder) runs every hour, but will be delayed according the pending users reminder delay site setting.
Once approved by a staff member, users get an e-mail that lets them know that they’ve been approved.
Hi!! Still this text does not support HTML or markdown?..i mean nothing changed in recent releases? Would be nice to have the possibility to add some hyperlinks to this message…
This doesn’t seem to be working for me. When I send an invite (which includes a group membership) I get the account creation link and after putting in the details I get an email with a link allowing me to activate the new account straightaway.
In my admin account I don’t get a notification to allow the user.
When the must approve users site setting is enabled, invites can only be sent from staff accounts. Any invite sent from a staff account is automatically pre-approved. This is why users that you invite are able to log into the site without having to be approved by a staff member.
Users who signup with a username/password will still need to be approved though.
Perhaps the invite dialog should indicate that fact in the text it displays to the staff member, so there is less confusion, and less future support we have to deal with here on Meta?
The job is called PendingUsersReminder and runs every hour, but can be delayed according the pending users reminder delay site setting.
Only if they also have the moderator role
There is not that I’m aware of. I think you would need to come up with a small plugin to override the hard-coded frequency in the PendingUsersReminder job.
These were good questions! I’ll be sure to integrate the answers into the OP.
You can get close to what you are looking for by enabling the must approve users site setting and setting your min trust level to allow invite setting to “4: leader” to prevent regular users from sending invites.
Users who accept invites sent by staff members will be automatically approved. Users who register with a username/password will need to be approved by a staff member.
@tshenry
Hi,
I hope you are doing well, where can I find this particular portion “must approve users”?
I tried, however I am unable to find it, please forgive my little brain.
You are true Gem.
Thank you so much.
Please take a look at my discourse site https://community.pratah.news (empty right now).
Work is still in progress.