Team Access with Groups, Roles and Temporary Grants
Invite people into an organization, organize them in project groups, grant groups roles instead of individual permissions, and hand out access that expires on its own.
Overview
Access in Prism is a set of grants. Each grant has:
- a principal: a user, service account or group;
- an effect:
allowordeny(deny wins); - a permission pattern such as
stores.getorservice_accounts.*, or a role: a named set of permissions; - a scope: the organization, a project, or a single resource (a store, group, service account or federation service);
- optional conditions (a store key prefix) and an expiry.
Group memberships can expire too. Together this covers standing team access, least privilege for automation, and time-boxed access for incidents or contractors.
-
Invite people
The organization owner invites a user by username. The invite token is valid for 7 days by default:
prism users invite --username alice # token: prism_0ccf… # expires_at: 2026-11-18 21:17:36The invitee registers with the token, sets a password and logs in:
prism users register --token prism_0ccf… --password '…' --display-name "Alice Example" prism auth login --org acme --username alice --password '…' -
Create groups for teams
Groups belong to a project. Members can be users or service accounts:
prism groups create -p payments --name developers prism groups create -p payments --name operators prism groups add-member developers alice -p payments prism groups add-member operators bob -p payments prism groups add-member operators deploy-bot -p payments # a service account prism groups list-members operators -p payments -
Grant roles to groups
Prism ships with built-in roles:
Role Grants prism:project-adminEverything in a project, including grants and roles (held by the project's creator) prism:project-viewerRead configuration and grants; no store values or credentials prism:service-account-adminManage service accounts, their credentials, hostnames, assumption methods and grants prism:service-account-credentials-adminManage service accounts' API keys, public keys and invites only prism:store-readerList and read store values prism:store-writerList, read, write and delete store values # Everyone on the team can look around the project prism projects add-grant --project payments \ --principal developers --effect allow --role prism:project-viewer # Operators manage service accounts and the production config store prism projects add-grant --project payments \ --principal operators --effect allow --role prism:service-account-admin prism stores add-grant -p payments --store app-config \ --principal operators --effect allow --role prism:store-writerA grant can also name a single permission. See them all with:
prism permissions list-grants -
Define your own roles
Custom roles are created in a project, or in the organization to be usable in all its projects. Changing a role's permissions takes effect for every grant of the role immediately.
prism roles create store-rotator -p payments \ --permission stores.get --permission stores.set --permission stores.set_current \ -d "Rotate secrets, but not delete them" prism stores add-grant -p payments --store app-config \ --principal operators --effect allow --role store-rotator prism roles list -p payments prism roles update store-rotator -p payments --permission stores.get --permission stores.set -
Give temporary access
Both grants and group memberships take
--expires-at(YYYY-MM-DD HH:MM:SS, UTC). When it passes, the access is gone; nobody has to remember to revoke it.# On-call access for one night prism groups add-member operators alice -p payments --expires-at "2026-11-12 08:00:00" # A contractor may read the project for two weeks prism projects add-grant --project payments \ --principal carol --effect allow --role prism:project-viewer \ --expires-at "2026-11-25 17:00:00" -
Carve out exceptions with deny
A
denygrant overrides any allow, whatever its scope:# Operators can manage service accounts, but not delete this one prism service-accounts add-grant -p payments --service-account ledger-signer \ --principal operators --effect deny --permission service_accounts.delete -
Review and revoke
prism projects list-grants --project payments prism stores list-grants -p payments --store app-config # includes inherited grants prism groups remove-member operators bob -p payments # Remove one role grant, or all of a principal's grants on the store prism stores remove-grant -p payments --store app-config --principal operators --role store-rotator prism stores remove-grant -p payments --store app-config --principal operatorsEvery change to grants, roles and memberships is audit logged:
prism org audit --org acme --limit 100
Tips
- Grant roles to groups and put people in groups, rather than granting people directly: moving someone between teams is then a membership change.
- Grant at the narrowest scope that works: a store grant with a key prefix rather than a project grant.
- Group membership also travels in tokens: federation
tokens list the caller's groups, and certificates
can include one (
--group), so downstream systems can authorize on them.