generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LGA-A3459 - Add user creation/update/removal management commands (#67)
Add user creation/update/removal management commands
- Loading branch information
Showing
10 changed files
with
433 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
--- | ||
title: User Management | ||
--- | ||
|
||
# User Management | ||
|
||
## Adding users | ||
Use `./manage.py add-user` to add users | ||
|
||
``` | ||
Usage: manage.py add-user [OPTIONS] USERNAME | ||
|
||
Arguments | ||
* username TEXT [default: None] [required] | ||
|
||
Options | ||
* --email TEXT [default: None] [required] | ||
* --full-name TEXT [default: None] [required] | ||
* --password TEXT [default: None] [required] | ||
--disable --no-disable [default: no-disable] | ||
--help Show this message and exit. | ||
|
||
|
||
Example: ./manage.py add-user test_user --email [email protected] --full-name "Test User" --password "password123" | ||
``` | ||
|
||
## Updating users | ||
Use `./manage.py update-user` to update users | ||
|
||
``` | ||
Usage: manage.py update-user [OPTIONS] USERNAME | ||
|
||
Arguments | ||
* username TEXT [default: None] [required] | ||
|
||
Options | ||
--email TEXT [default: None] | ||
--full-name TEXT [default: None] | ||
--password TEXT [default: None] | ||
--disable --no-disable [default: no-disable] | ||
--enable --no-enable [default: no-enable] | ||
--help Show this message and exit. | ||
|
||
|
||
Example: ./manage.py update--user test_user --email [email protected] --full-name "Sir Test User" | ||
``` | ||
|
||
## Delete users | ||
|
||
Use `./manage.py delete-user` to delete users | ||
|
||
``` | ||
Usage: manage.py delete-user [OPTIONS] USERNAME | ||
|
||
Arguments | ||
* username TEXT [default: None] [required] | ||
|
||
Options | ||
--help Show this message and exit. | ||
|
||
``` | ||
## List users | ||
|
||
Use `./manage.py list-user` to get a list of all users |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.