|
| 1 | +--- |
| 2 | +category: System Administrator > Configuration & Administration |
| 3 | +title: Self Account Creation |
| 4 | +--- |
| 5 | + |
| 6 | +The feature of User Account Creation (a.k.a. Self Account Creation) is |
| 7 | +only available on systems that use DatabaseAuthentication. |
| 8 | + |
| 9 | +To change authentication types, either re-run `CONFIGURE_SUBMITTY.py` |
| 10 | +or manually edit `/usr/local/submitty/config/authentication.json` and |
| 11 | +change the authentication method to `DatabaseAuthentication`. |
| 12 | + |
| 13 | +See also [Managing Enrollment](/instructor/course_management/managing_enrollment) |
| 14 | + |
| 15 | + |
| 16 | +### Enable Self Account Creation |
| 17 | + |
| 18 | +To enable self account creation if you already have a Submitty instance setup, manually edit the |
| 19 | +`/usr/local/submitty/config/submitty.json` configuration file. By |
| 20 | +default, `user_create_account` is set to `false`. To enable it, change |
| 21 | +this to `true`. You will also need to add configuration settings for |
| 22 | +`"user_id_requirements"`: |
| 23 | + |
| 24 | + |
| 25 | +```json |
| 26 | +"user_create_account": true, |
| 27 | +"user_id_requirements": { |
| 28 | + "any_user_id": true, |
| 29 | + "require_name": false, |
| 30 | + "min_length": 6, |
| 31 | + "max_length": 25, |
| 32 | + "name_requirements": { |
| 33 | + "given_first": false, |
| 34 | + "given_name": 2, |
| 35 | + "family_name": 4 |
| 36 | + }, |
| 37 | + "require_email": false, |
| 38 | + "email_requirements": { |
| 39 | + "whole_email": false, |
| 40 | + "whole_prefix": false, |
| 41 | + "prefix_count": 6 |
| 42 | + }, |
| 43 | + "accepted_emails": [ |
| 44 | + "gmail.com" |
| 45 | + ] |
| 46 | +} |
| 47 | +``` |
| 48 | + |
| 49 | + |
| 50 | +### Email and User ID Requirements |
| 51 | + |
| 52 | + |
| 53 | +* If `require_name` is true, then the `user_id` must start with and contain a |
| 54 | +certain amount of characters from the given name and/or family name. |
| 55 | + |
| 56 | +* If the user does not have the character amount for the given part of the name, it will accept shorter usernames. (e.g. James Wo -> woja, and James Joseph -> joseja) |
| 57 | + |
| 58 | +* `given_first` determines whether the given name or family name must come first. (e.g. Test User -> userte vs teuser) |
| 59 | + |
0 commit comments