Manage users, roles and groups¶
What you'll learn:
- How Repod decides who can do what: roles, permissions and groups
- What each built-in role can do, permission by permission
- How to create a user, a custom role, a group and an API token
- How to give people the least access they need
Time: ~20 minutes
Prerequisites: You are signed in as admin. You have read Your first login for the account and password rules.
How access works¶
Three ideas are enough to understand the whole page.
- A permission is one action: "upload packages", "take CVE decisions", "deploy to machines". There are 15 of them.
- A role is a named set of permissions. Each user has exactly one role.
- A group is a set of users. It is used to assign CVE decisions to a team, and can give its members a default role.
On top of the role, Repod can restrict the scope: which distributions, which machines, which container or application repositories a person can see. A role decides what a person can do, the scope decides where. This tutorial covers the role part. The scope rules are described in The RBAC model and set up in Restrict distribution and machine access.
Step 1 — Read the users page¶
Open Administration → Utilisateurs.
Figure 1 — Users and API tokens.
- Rôles disponibles. A reminder of the five built-in roles and what each is for.
- A user. The account, its role, where it comes from (Compte local, or a directory), its status, its last sign-in and its creation date. A warning appears when the account has no e-mail address: it will not receive any notification (see Keep your data fresh, Step 8).
- The actions. From left to right: Modifier, Réinitialiser le mot de passe (disabled for accounts managed by LDAP) and Supprimer.
- Tokens d'API. Credentials for pipelines, covered in Step 5.
- Créer un token. Opens the form shown here.
Step 2 — Know the built-in roles¶
Open Administration → Rôles.
Figure 2 — The roles.
- A system role. The five built-in roles carry a SYSTÈME badge.
- Permissions. How many permissions the role holds.
- Détails / Masquer. Shows or hides the list of permissions of the role.
- The list. Here, the 10 permissions of Mainteneur.
- Nouveau rôle. Creates a custom role (Step 3).
- Rôles personnalisés. Empty until you create one.
Here is what each role holds:
| Permission | Administrateur | Mainteneur | Packager / CI-CD | Auditeur | Lecteur |
|---|---|---|---|---|---|
| Voir les CVE | yes | yes | yes | yes | |
| Prendre des décisions CVE | yes | yes | |||
| Déposer des paquets | yes | yes | yes | ||
| Importer des paquets | yes | yes | yes | ||
| Supprimer des paquets | yes | yes | |||
| Promouvoir des paquets | yes | yes | |||
| Lire les logs d'audit | yes | yes | yes | ||
| Voir l'inventaire machines | yes | yes | yes | ||
| Déclencher des scans inventaire | yes | yes | |||
| Déployer des paquets sur les machines | yes | yes | |||
| Gérer les utilisateurs | yes | ||||
| Gérer les groupes | yes | ||||
| Gérer les rôles | yes | ||||
| Administrer les paramètres | yes | ||||
| Gérer les sauvegardes | yes |
In practice:
- Administrateur is for the few people who run the platform. Only this role manages users, roles, groups, settings and backups.
- Mainteneur runs the package life cycle and the fleet, and takes CVE decisions. It cannot manage accounts or change settings.
- Packager / CI-CD can upload and import, nothing else. It is the role for a build pipeline.
- Auditeur reads everything that matters for compliance (CVE, audit log, inventory) and changes nothing.
- Lecteur can only see the CVE. It is the role for a service account, such as a machine that only needs to read the repository.
Step 3 — Create a user¶
Back on Utilisateurs, click Créer un utilisateur.
Figure 3 — Creating a user.
- Nom d'utilisateur. Required.
- Mot de passe. Required, at least 8 characters (the password rules of Your first login apply). Choose a strong password and pass it on securely. An administrator can reset it later with the key icon (Figure 1).
- Rôle. Lecteur by default, so a new account starts with the least access. The text under the list reminds you what the selected role can do.
- Nom complet and Email. Optional, but fill in the e-mail: without it the person receives no alert.
Start from the smallest role
Give the role that matches today's job, not the one that might be convenient. Raising a role later takes one click, while a role that was too high can have done damage before anyone notices.
If your organisation has a directory, connect it rather than creating accounts by hand (see LDAP and SSO).
Step 4 — Create a custom role¶
When none of the five roles fits, for example "someone who can take CVE decisions but cannot deploy", build your own. Click Nouveau rôle on the Rôles page.
Figure 4 — Creating a role.
- Identifiant technique. Required, short and without spaces (for example
analyste-secu). - Label affiché. The readable name.
- Description. What the role is for and who has it.
- Couleur. The colour of its badge.
- Permissions. The 15 permissions grouped by category: Sécurité CVE, Paquets, Administration, Audit and Inventaire. Sélectionner tout ticks a whole category.
- Créer. The counter above the list ("0 sélectionnées") shows how many permissions you have chosen.
Be careful with the Administration category
Gérer les rôles and Gérer les utilisateurs let their holder give themselves, or anyone else, any other permission. Treat them, and Administrer les paramètres, as administrator rights.
Step 5 — Create a group¶
A group makes a team addressable. Open Administration → Groupes.
Figure 5 — The groups.
- A group. Its name and colour, and its description.
- Membres. The number of members.
- Actions. Membres manages who belongs to it, Éditer and Supprimer.
- Nouveau groupe. Opens the form below.
Figure 6 — Creating a group.
- Nom. Required.
- Description. The role or scope of the team.
- Couleur. Its colour.
- Rôle par défaut. Aucun (pas d'héritage) by default. If you choose a role, the members whose current role is lower automatically inherit it.
The main use is to hand a CVE decision to a team rather than to one person: in Conformité parc, Escalader and the decision workflow can target a group. See Fix a vulnerability on your machines. A group can also be used as the audience of a scope rule (see The RBAC model).
Step 6 — Create an API token for a pipeline¶
A token lets a CI/CD pipeline authenticate without a password. On Utilisateurs, click Créer un token (Figure 1).
- Nom du token. Name it after what uses it, for example
gitlab-ci. You will recognise it in the list and in the audit log. - Rôle.
uploaderby default: it can upload and import and nothing else. Keep it that way for a publishing pipeline. - Expire dans (jours). Pre-filled with
365: the token expires after a year. If you clear the field, the token never expires, so keep a duration unless a pipeline truly cannot rotate its token.
Click Créer. The token is shown only once: copy it immediately into your pipeline's secret store. If you lose it, delete it and create another.
One token per use, with the smallest role
A token carries the permissions of its role. A pipeline that only publishes needs uploader, not admin. Use one token for each pipeline so you can revoke one without breaking the others. Expired tokens stay in the list until you remove them with the cross on the right.
Using a token in a pipeline is covered in Set up CI/CD publishing.
Checklist¶
- Keep the Administrateur role for the few people who run the platform, and turn on two-factor authentication for them (see Keep your data fresh, Step 1).
- Give everyone else the smallest role that lets them do their job.
- Fill in e-mail addresses so alerts reach people.
- Prefer a directory (LDAP or SSO) to hand-made accounts when you have one.
- Review the user list and the API tokens regularly, and delete what is no longer used.
What's next¶
- The RBAC model: how roles and scope rules combine
- Restrict distribution and machine access: limit where a role applies
- Set up CI/CD publishing: use an API token in a pipeline
- Your first login: the account and password rules





