Last modified: 2011-03-13 18:05:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T19943, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17943 - API to create user (disabled by default)
API to create user (disabled by default)
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-11 18:53 UTC by Michael Daly
Modified: 2011-03-13 18:05 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Michael Daly 2009-03-11 18:53:21 UTC
In order to help those creating a new wiki with a requirement to preload the login IDs for an existing user set (e.g. within a company so they don't need wiki IDs different than those on existing systems), please provide an API for creating users.

This API should be disabled by default.  One should have to explicitly enable this to ensure that they have some notion what they are doing.

A whitelist (mandatory?) should be provided so that IPs (or domain names?) can be specified as the only ones that can execute the API call.  That allows the wiki admin to run the API without enabling it for the world (of spammers).

This would be easier for many admins than trying to sort through the various function calls and table updates that may be needed to create a user via a PHP script.
Comment 1 Roan Kattouw 2009-03-12 08:40:31 UTC
Resolving as WONTFIX.

I don't think this belongs in the API, a maintenance script would be more appropriate. I guess adding a --nopromote flag to createAndPromote.php would suffice.

> This would be easier for many admins than trying to sort through the various
> function calls and table updates that may be needed to create a user via a PHP
> script.
> 
When you say that creating users sounds like a very difficult process, which it isn't. It's just a matter of inserting a row into the user table, and the only difficult parts there are calculating the password hash and validating the user name. The latter is documented at the bottom of http://www.mediawiki.org/wiki/User_table
Comment 2 p858snake 2009-03-12 08:44:18 UTC
Also have a look at ImportUsers Extension <http://www.mediawiki.org/wiki/Extension:ImportUsers>

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links