3.0 KiB
Users
There are multiple pre-defined roles in Kimai, which define the ACLs. A user can only inherit one role, where the roles extend each user.
Roles & Permissions
| Role name | extends | Gives permission for |
|---|---|---|
| ROLE_CUSTOMER | - | Currently has no permissions, but was reserved for future functionality |
| ROLE_USER | ROLE_CUSTOMER | Time-tracking |
| ROLE_TEAMLEAD | ROLE_USER | All of the above, plus: editing other users timesheets |
| ROLE_ADMIN | ROLE_TEAMLEAD | All of the above, plus: editing customers, editing projects, editing activities |
| ROLE_SUPER_ADMIN | ROLE_ADMIN | All of the above, plus: editing users |
Login
- User can login with their username or email
- If you activate the
Remember meoption, you can use use the most common functions within the next days without a new login
Remember me login
If you have chosen to login with the Remember me option, your login will be extended to one week (default value).
After coming back and being remembered you have access to all the following features:
- view your own timesheet
- start and stop new records
- edit existing records
If you are an administrator, you will see all your allowed options in the menu, but will be redirected to the login form when you try to access them. This is a security feature to prevent abuse in case you forgot to logout in public environments.
Read the configurations chapter if you want to change the value.
User registration
User registration with instant approval is activated by default, so users can register and will be able to login and start time-tracking instantly. If you want your new users to use email based activation, then change the following configuration:
- in
config/packages/fos_user.yamlchange the settingfos_user.registration.confirmation.enabledto true (default: false)
If you want to deactivate the user registration completely, you have to change the following configs:
- in
config/packages/admin_lte.yamlremove the route aliasadmin_lte.routes.adminlte_registration(this will remove the link from the login form) - in
config/routes.yamlremove the blockfos_user_registration(this will deactivate the functionality)
Password reset
The reset password function is enabled by default. If you want to deactivate this feature you have to change the following configs:
- in
config/packages/admin_lte.yamlremove the route aliasadmin_lte.routes.adminlte_password_reset(this will remove the link from the login form) - in
config/routes.yamlremove the blockfos_user_resetting(this will deactivate the functionality)
If you want to configure the behaviour (like the allowed time between multiple retries) then configure the settings:
- in
config/packages/fos_user.yamlthe key belowfos_user.registration.resetting(see documentation) - the values
retry_ttlandtoken_ttlare configured in seconds (7220 = 2 hours)