Study guide · Users, groups and permissions
Setting up users, groups and permissions in TYPO3 securely
Who may do what in the TYPO3 backend decides the security of the whole website. An editor account with too many permissions is a jackpot for attackers. On this page you learn how backend groups, mounts and page permissions work together. You also learn how to protect frontend pages for certain visitors and how to look after accounts over their whole lifetime. As a running example, an agency maintains two websites in one installation: the farm shop and the winery.
Few permissions, personal accounts
The most important principle of the TYPO3 security guidelines is as few permissions as possible. Every backend user gets only the permissions needed for their work. This makes the backend clearer and the system more secure. An editor usually needs no access to PHP, JavaScript or HTML. The opposite approach, granting everything first and cutting back later, fails in practice: cutting back rarely happens.
Every person gets their own, personal account. Generic names such as editor, webmaster or cms hide who did the work. Good user names follow the pattern firstname.lastname, for example anna.schmidt, or use the email address. Then every change can be attributed to a person. This helps when tracking down errors and is also in line with the GDPR, because it is clear who logs in and who changed what. Combined with role groups, you can also see which role someone has.
The work is clearly divided. Editors maintain content. Installing and updating extensions, maintaining templates and TypoScript and creating new users is the job of integrators and administrators.
Why editors are not admins
An administrator bypasses all page, module and field permissions. Admins see every field and every table. If an admin account is compromised, for example through a stolen password, the attacker can change everything: content, users and configuration. A compromised admin account therefore endangers the whole installation. That is why editors do not get admin rights, not even "so as not to miss anything". An editor account with suitable groups covers the work. By the way, admins may well maintain content, so that is no argument against admin rights.
One level higher is the system maintainer. In the Production context, only the registered system maintainers may open the System modules, that is the tools for maintenance, settings, upgrade and environment. Normal admins may do everything in the backend except these modules. The system maintainers are kept in a separate list in the system configuration, and access requires sudo mode.
Editors carry responsibility too. If someone notices that their account has admin rights or otherwise overly extensive permissions, they report it to the maintainers and ask for suitable, restricted permissions. More permissions bring more risk and more responsibility. There are further rules of conduct for editors:
- They use the backend only via HTTPS with a valid certificate.
- They log out explicitly after work.
- They work with their own account and a secure password.
- They never share credentials with colleagues, not even when someone is ill.
Permissions belong in groups
You maintain permissions in backend user groups, not in the individual user records. A group such as "Editors" bundles the permissions. If you change the group, the change applies to all members, and you can always see where a permission comes from. Permissions in the user record, on the other hand, get scattered and are hard to trace.
A split into two kinds of groups has proven itself:
- Area groups define where someone works. For each website there is a group with the matching DB mount and file mount, so "Farm shop" and "Winery".
- Role groups define what someone does. A group "Editor" allows the modules, tables and fields an editor needs.
- Every user receives a combination of role group and area group, for example "Editor" plus "Farm shop".
It matters how TYPO3 combines several groups: permissions add up. If group A allows the module Records and group B does not, the user may use the module. There is no "the stricter permission wins" and no conflict. This leads to a danger: a single generous group cancels the restrictions of all other groups.