[MediaWiki-l] Stopping Users from Creating Account

Tom Hutchison tom at hutch4.us
Fri Jul 7 15:03:07 UTC 2017

Ah, cool that gives me a direction to go in. I'll work up something and test it, then update the docs because it is not clear on how to achieve this.
Thanks Brian!


-----Original Message-----
From: MediaWiki-l [mailto:mediawiki-l-bounces at lists.wikimedia.org] On Behalf Of Brian Wolff
Sent: Friday, July 7, 2017 10:24 AM
To: MediaWiki announcements and site admin list <mediawiki-l at lists.wikimedia.org>
Subject: Re: [MediaWiki-l] Stopping Users from Creating Account

That is exactly what the createaccount permission is. Do something like (i havent tested this and im a little rusty on the autopromote syntax):

$wgGroupPermissions['*']['createaccount'] = true; $wgRevokePermissions['usernotadmin']['createaccount'] = true; $wgAutopromote = [  'usernotadmin' =>
    [ '&', [ APCOND_INGROUPS, 'user' ], [ '!', [ APCOND_INGROUPS, 'sysop'


More information about the MediaWiki-l mailing list