Skip to content
lynxby

Access and identity

Service accounts: an identity for a system

A machine gets its own name, groups and tokens, so an integration does not borrow a person who may leave.

A nightly sync needs to authenticate. Borrowing a colleague's account works until that colleague leaves, changes teams, or the audit trail has to say who acted. A service account is the identity that does not have those problems.

What it is

A user row like any other: a name, a generated address, groups, tokens and an on/off switch. It cannot sign in, never receives mail, and takes no billing seat. The description is the sentence that makes an orphan obvious six months later: "Runs on the ERP server; owned by the operations team."

Permissions come from groups

A service account holds no grant of its own. It is put into groups exactly like a person, and its permissions are the union of those groups' roles. Change the groups and the next API call sees the new union; nothing is cached in a session. An empty group list is an account that can do nothing, and the screen says so.

Tokens

A token is minted on the service account's own row. The value is shown once and stored only as a hash. It carries scopes, which are a ceiling on top of the groups: the route must allow the scope and the policy must allow the group's permission. Both must pass. Creation, expiry, rotation and revocation are the same mechanics a person uses.

Deactivate, reactivate, delete

Deactivation changes nothing except one column: groups stay, tokens stay, trigger links stay. From the next request every token answers 401, and a trigger that runs as the account refuses with a clear reason. Reactivation clears the column and the same tokens work again. Nothing was revoked.

Deletion is separate and destructive. It first loads what would break: every token, every trigger that runs as the account, every integration linked to it. Only then does the permanent button become available. The ledger records the names of what went with it.

Orphans

The screen marks an account whose tokens have not been used for ninety days and lists those under Orphaned accounts. Nothing is removed automatically; the list is a prompt to ask the owner whether the system still exists.

Where it stops

A service account never counts as a member, so it does not consume a seat. It also cannot hold more than its groups allow, which is the point. A person can mint a token for it, but the token belongs to the machine: the ledger keeps both the creator and the owner.

Related: API and tokens, permissions, the audit ledger.

Want to see this on your own documents?

Contact us

Search all guides