Skip to main content

Users and access

Users come from your OIDC provider: an account is created at its first login. Only admins manage users, from Administration → Users.

Profiles​

ProfileContainersAdmin features
AdminAllUsers, domains, websites, SFTP, managed services, private networks, audit trail
RestrictedOnly those granted by an adminNone (403)
  • The first user to log in becomes admin.
  • Every later user starts restricted, with no container.

Every user, whatever the profile, manages their own API keys and can use scheduled tasks.

The Users page with admins, restricted users and the action buttonsThe Users page with admins, restricted users and the action buttons

Grant containers​

  1. In Users, click Edit on the user's row.
  2. In the side panel, move the containers to the right-hand list (use Search for a container to filter).
  3. Click Confirm.

The Permissions column then lists the granted containers. A restricted user sees and acts only on those containers (logs, shell, file copy, stats, actions, scheduled tasks).

The Edit user permissions panel with the container transfer listThe Edit user permissions panel with the container transfer list

Actions​

ButtonEffect
EditChoose the containers of a restricted user
Turn into adminPromote: access to every container and admin feature
Turn into restricted userDemote to restricted
Deny all containersMake restricted and remove every granted container
DeleteDelete the user and revoke all their API keys

Your own row shows Current user instead of buttons: another admin must change your profile.

From the CLI​

loch users ls
loch users grant alice@example.com web-1 db-1
loch users revoke alice@example.com db-1
loch users promote alice@example.com
loch users demote alice@example.com
loch users rm alice@example.com

See the Loch CLI documentation.

Good to know​

  • Access is granted by container name: a container recreated with the same name keeps its users; a renamed one does not.
  • Function containers (fn-*) can never be granted to a restricted user.
  • Containers with a system label are not listed in the panel.
  • An API key carries the profile of its user: a restricted user's key never reaches admin routes, whatever its scopes (scopes).
  • Deleting a user does not block their OIDC account: they get a new restricted account at their next login. Block them in the provider.
  • Every change is recorded in the audit trail.