| 1 | = User Management = |
| 2 | |
| 3 | == User Registration == |
| 4 | Depending on Deployment Settings (See: DeveloperGuidelines/UserManagement) the user may have to verify their email or be approved by an administrator. |
| 5 | |
| 6 | == Approve a Pending User's registration == |
| 7 | 1. Administration > List All Users ({{{/eden/admin/user}}}) |
| 8 | 1. Click {{Approve}} next to pending Users |
| 9 | |
| 10 | == Create a New User == |
| 11 | 1. Administration > New User ({{{/eden/admin/user/create}}}) |
| 12 | 1. Enter New Users Details |
| 13 | A new User created by the administrator will not be automatically linked to either a Person or Human Resource record. This will have to be done explicitly, using the following instructions: |
| 14 | |
| 15 | == Link User to Person & Human Resource Record == |
| 16 | 1. Administration > List All Users ({{{/eden/admin/user}}}) |
| 17 | 1. Click {{Link}} next to Users (or on the User record page) |
| 18 | 1. Edit User Details |
| 19 | When you edit a user, changes will automatically be applied to any linked Person and Human Resource records |
| 20 | |
| 21 | == Edit a User == |
| 22 | 1. Administration > List All Users ({{{/eden/admin/user}}}) |
| 23 | 1. Click {{Open}} next to Users |
| 24 | 1. Edit User Details |
| 25 | When you edit a user, changes will automatically be applied to any linked Person and Human Resource records |
| 26 | |
| 27 | == Reset password from CLI == |
| 28 | If you have CLI access to an instance, but don't know the password for an admin login then you can reset a password: |
| 29 | {{{ |
| 30 | w2p |
| 31 | import hmac |
| 32 | import hashlib |
| 33 | alg = hashlib.sha512 |
| 34 | hmac_key = auth.settings.hmac_key |
| 35 | password = hmac.new(hmac_key, "newpassword", alg).hexdigest() |
| 36 | table = db.auth_user |
| 37 | db(table.email == "myemail@domain.com").update(password = password) |
| 38 | }}} |
| 39 | |
| 40 | == See Also == |
| 41 | * UserGuidelinesRegistration |
| 42 | * UserGuidelines/Admin |
| 43 | * DeveloperGuidelines/UserManagement |