| 1 | # User Management |
| 2 | |
| 3 | DmarcSrg supports the ability to add new users with different access levels, and to assign domains to users. |
| 4 | |
| 5 | # Configuration |
| 6 | |
| 7 | Before activating user management, make sure that the administrator has a password (config/config.php -> admin -> password). |
| 8 | In the config.php set users -> user_management to true. During authorization, in addition to the password, DmarcSrg will ask for a username. |
| 9 | To log in with an administrator account, use username `admin` and the password from the configuration file. |
| 10 | |
| 11 | # Usage |
| 12 | |
| 13 | User management is available in the web interface, Administration -> Users. |
| 14 | |
| 15 | When adding a user, you must specify the user name, access level, and domains. The password can be set after adding a user, in edit mode. |
| 16 | |
| 17 | Multiple domains can be assigned to a single user and multiple users can be assigned the same domain. There are no restrictions other than common sense. |
| 18 | |
| 19 | Each user has its own settings. |
| 20 | |
| 21 | > [!NOTE] |
| 22 | > You do not need to add the Admin user. It is a built-in account. Use the user name `admin` in the authentication dialog. |
| 23 | |
| 24 | # Access Levels |
| 25 | |
| 26 | There are currently three levels of access: 'admin', 'manager', 'user'. Only the last two ones can be assigned to new users. The access levels affect the functionality available to users in the web interface: |
| 27 | |
| 28 | |
| 29 | | Action | Admin | Manager | User | |
| 30 | |----------------------------|:-------:|:-------:|:-------:| |
| 31 | | ***Incoming reports*** | | | | |
| 32 | | View Report list | Yes | Yes | Yes | |
| 33 | | View report | Yes | Yes | Yes | |
| 34 | | Load from local file | Yes | Yes | No | |
| 35 | | Load from mailboxes | Yes | No | No | |
| 36 | | Load from server directory | Yes | No | No | |
| 37 | | Load from remote FS | Yes | No | No | |
| 38 | | ***Summary reports*** | | | | |
| 39 | | Create and view reports | Yes | Yes | Yes | |
| 40 | | ***Domains*** | | | | |
| 41 | | View domains | Yes | Yes | Yes | |
| 42 | | Add domains | Yes | Yes [^1]| No | |
| 43 | | Delete domains | Yes | Yes [^2]| No | |
| 44 | | Edit domains | Yes | Yes | No | |
| 45 | | Assign/unassign domains | Yes | No | No | |
| 46 | | ***Users*** | | | | |
| 47 | | View users | Yes | No | No | |
| 48 | | Add users | Yes | No | No | |
| 49 | | Delete users | Yes | No | No | |
| 50 | | Edit users | Yes | No | No | |
| 51 | | ***Other actions*** | | | | |
| 52 | | Database management | Yes | No | No | |
| 53 | | Logs | Yes | No | No | |
| 54 | |
| 55 | [^1]: The domain will be added (if necessary) and assigned to the user. It is possible to enforce domain ownership verification via checking a DNS TXT record. |
| 56 | [^2]: Instead of deleting, a domain will be unassigned from the user. Admin will be able to finally remove this domain. |
| 57 | |
| 58 | # Domain Verification |
| 59 | |
| 60 | DmarcSrg can perform ownership verification before adding a domain. To activate the verification it is necessary to set the `users -> domain_verification` parameter to 'dns' in the configuration file. While adding a domain, the dialog box will display a warning with information about domain verification. |
| 61 | |
| 62 | To deactivate verification set the parameter value to 'none'. |
| 63 | |
| 64 | > [!NOTE] |
| 65 | > No domain verification is performed for the `admin` user. |
| 66 | |
| 67 | # Utils |
| 68 | |
| 69 | utils/summary_report.php now has a parameter `user` that allows you to get summary reports for all domains of a specified user. |
| 70 | |
| 71 | For example: |
| 72 | `$ php utils/summary_report.php domain=all user=frederick1 period=lastmonth` |
| 73 | will send a summary report for the last month for all domains assigned to user frederick1 via email. |