Documentation · Administration · Settings
Admins
Settings → Admins: who can open the admin pages and define specs. Admins come from identity provider groups, from people named here, and from the configuration.
Three ways to be an admin
| Way | Set where | When it applies |
|---|---|---|
| A member of an admin group | Admin groups here, plus CREDVANE_ADMIN_GROUPS (default credvane-admins) | At each sign-in, from the token's groups, roles and realm_access.roles |
| Named here | Add an admin by email, or Make admin on Users | At once, or when they first sign in |
| A bootstrap admin | CREDVANE_ADMINS in the environment | On every request; never stored |
Groups from configuration show with a From configuration badge and cannot be removed here. Removing someone named here does not remove an admin who is also in an admin group.
Examples
- Keycloak: turn on Full group path in the groups mapper, and add
credvane-admins. The top-level/credvane-adminsmatches it; a nested group such as/contractors/credvane-adminscounts only as its full path, so whoever can create a subgroup cannot make admins. - Other providers: add the group exactly as it appears in the sign-in token's
groupsorrolesclaim. Decode a token from a test sign-in to check. - First start: set
[email protected], sign in, set up groups here, then remove the variable.
Group changes at the identity provider, including leaving an admin group, apply at the next sign-in. See who is an admin.
Terraform
Not in the Terraform provider: admins follow your identity provider's groups.