Users, roles and permissions¶
Roles and permissions¶
Roles¶
| admin | helpdesk | auditor | |
|---|---|---|---|
| Sees | everything | Overview, Devices, Compliance, Library, Blueprints, Enrollment, Approvals (own requests), Help | everything, including the audit log |
| Changes | everything | the device commands below, nothing else | nothing |
| Exports | yes | no | yes |
| Audit log, Verify whole chain | yes | no | yes |
| Disk recovery keys | view (with reason) | view (with reason) | no |
| Remote shell | start, end, transcripts | start only when The helpdesk role may start sessions is on; own sessions, no transcripts | transcripts only |
| Decide approvals | yes | no | no |
Device commands of the helpdesk role (helpdeskCommands in internal/server/web.go, one
list for console, bulk actions and API): sync, update, reboot, shutdown, lock,
unlock, message, user_password, user_lock, user_unlock and diagnostics (collect
and download logs). Scripts, lost mode, wipe, retire, delete, agent updates, software,
tags, account creation, deletion and admin rights stay with admins. The helpdesk cannot
reset, lock or unlock accounts that can reach root (uid 0, member of sudo, wheel or
admin, named in a sudoers rule; the agent also refuses members of docker, lxd,
incus-admin, libvirt and disk, which reach root without sudo): the server refuses them from the last inventory with a
clear message, and the agent refuses them from its own view, because the server signs a
no_admin flag into every user command of the helpdesk. Accounts with uid 0 are refused
for every role. The help page and the
users section of the settings show the same role descriptions.
Device scopes¶
Helpdesk and auditor accounts can be limited to devices with given Scope tags or whose
primary user is in given Scope groups (directory groups). The scope is enforced on the
server for every device list, device page, command, export, recovery key, remote shell,
approval and audit entry: devices outside it answer 404. Scoped accounts cannot open pages
with fleet wide data (Directory, Agents, Software, Network certificates, version history).
Admins are never scoped. Roles and tags can also come from directory groups or the OIDC
groups claim (Console roles from groups, group; role; tag,tag per line;
Role groups). API tokens take scope tags the same way.
Tenants and global administrators¶
With multi tenancy, an account bound to a tenant reaches only tenant aware pages: the Overview, Devices, Compliance, Library, Blueprints, Enrollment, Audit log, Approvals, Users, Settings (Notifications only), API tokens, Network certificates of its devices, Company and Help. Everything global answers 403: Directory, Agents, Software, the other settings tabs and the Keys card, Tenants, the CRL token and Verify whole chain.
Global administrators (accounts without a tenant) see all tenants, switch between them with the tenant switcher and manage tenants. The Keys card (rotation of the device CA, network CA, command key, session key and webhook secret) is for global admins without a device scope only, also when they switched to a tenant. See Tenant accounts.
Four eyes rules¶
With Require a second administrator's approval on (Settings, Security), wipe,
lost mode, scripts, package downgrades (also bulk and through the admin API, which answers 202 with an
approval_id) and role changes of console users wait for a second admin. Optional:
Also for recovery key views and Also for remote shell sessions. The requester never
approves their own request, requests expire after 24 hours, and the setting needs at least
two active admins. Details: Four eyes approval.
Console users and roles¶
| Role | May |
|---|---|
admin |
everything |
helpdesk |
see devices (within its scope); sync, install updates, restart, shut down, lock and unlock, send a message; reset the password of, lock and unlock local accounts without admin rights on a device (accounts with uid 0, membership in sudo, wheel or admin or a sudoers rule are refused by the server from the inventory and by the agent, which also refuses members of docker, lxd, incus-admin, libvirt and disk); collect logs (diagnostics); reveal disk recovery keys; a remote shell only when Settings, Security, Remote shell allows the helpdesk. Not: scripts, lost mode, wipe, retire, software, creating or deleting accounts, configuration, Settings |
auditor |
read everything including the audit log and Settings, change nothing |
API tokens have their own roles, among them metrics (Tokens).
Users lists console accounts: OIDC identities (email) and local accounts
(local:<name>, password and TOTP). A new local account gets a generated password and TOTP
secret, shown once; Reset credentials replaces both. Rules enforced by the server:
- At least one active administrator always remains (two while four eyes approval is on).
- Nobody can demote, disable or reset their own account. The own row in Users is read only; personal settings live in the Profile.
- With four eyes approval, role changes wait for a second administrator.
Scopes. Helpdesk and auditor accounts can be limited to device tags and directory groups (Scope tags, Scope groups, comma separated; a device is in scope when it carries one of the tags or its primary user is in one of the groups). Empty means every device; admins are never limited. The server enforces the scope on the device list, overview, compliance page, device page, commands (single and bulk), remote shell, recovery keys, CSV exports (also packages and compliance history), the compliance history page and the audit log with its CSV and JSON Lines exports (entries about devices in scope); a device outside the scope is answered with 404. Pages with fleet wide data that are not filtered (Directory, Agents, Software, Network certificates, version history, Keys) are refused to scoped accounts. API tokens can carry scope tags too (Tokens); scoped tokens get no metrics.
Role groups¶
Settings, SSO, Console roles from groups maps groups to roles, one line each:
group; role; tags. Groups are directory groups by name (Google Workspace sync, SCIM) and
the OIDC groups claim when the provider sends one. Tags limit helpdesk and auditor roles
(admins cannot be limited). A person without an explicit console account whose groups map
to a role gets an account at sign in (marked from directory group); its role is derived
again on every request, so leaving the group ends access after the next directory sync. The
strongest mapped role wins. Accounts created or edited in Users are explicit and
ignore the mapping.
A mapping to admin grants the role only through the OIDC groups claim or Google
Workspace groups, never through a group the person is in only by SCIM: the static SCIM
token alone must not create global administrators. While
four eyes approval is on, no group grants admin at
all; the person gets the strongest other mapped role. Administrators are then added
explicitly in Users, with an approval.
Local admins¶
limdm-server local-admin manages local accounts from the server host, for the first
account and as break glass access when OIDC fails:
sudo -u limdm limdm-server local-admin -env /etc/limdm-server/server.env [-role admin|helpdesk|auditor] [-out FILE] add NAME
limdm-server local-admin -env FILE reset NAME # new password and TOTP secret
limdm-server local-admin -env FILE disable NAME # or enable
limdm-server local-admin -env FILE list
Once a server has started, the audit chain is keyed with the command key: the command
then needs the CA directory too (LIMDM_CA_DIR, usually from the same env file, read by the
limdm user) to key its audit entry, and stops when it cannot read it.
add and reset print the user name, a generated password and the TOTP secret
(otpauth:// URI), or write them to a new 0600 file with -out. The role defaults to
admin. Local accounts sign in only while local login is allowed.
Tenants. With multi tenancy, accounts belong to one tenant or are global (super admins); accounts added while switched to a tenant belong to it. Users lists the accounts of the current tenant, in the global view all of them with their tenant (Tenants).