Provide a script for batch creating user accounts

Summary: Make it a little easier to create a bunch of accounts if your company
has more than like 5 employees.

Test Plan: Ran "add_user.php" to create new users. Created new users from the
web console.

Reviewers: btrahan, jungejason, rguerin

Reviewed By: btrahan

CC: aran, btrahan, rguerin

Differential Revision: https://secure.phabricator.com/D1336
This commit is contained in:
epriestley
2012-01-06 10:44:12 -08:00
parent d16454d45d
commit 58f2cb2509
6 changed files with 130 additions and 42 deletions

View File

@@ -38,6 +38,21 @@ To manage accounts from the web, login as an administrator account and go to
##/people/## or click "People" on the homepage. Provided you're an admin,
you'll see options to create or edit accounts.
= Managing Accounts from the Command Line =
You can use ##scripts/user/add_user.php## to batch create accounts. Run it
like:
$ ./add_user.php <username> <email> <realname> <admin>
For example:
$ ./add_user.php alincoln alincoln@logcabin.com 'Abraham Lincoln' tjefferson
This will create a new ##alincoln## user and send them a "Welcome to
Phabricator" email from ##tjefferson## with instructions on how to log in and
set a password.
= Configuring Facebook OAuth =
You can configure Facebook OAuth to allow login, login and registration, or