Overview

Access in Prism is a set of grants. Each grant has:

Group memberships can expire too. Together this covers standing team access, least privilege for automation, and time-boxed access for incidents or contractors.

  1. 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:36

    The 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 '…'
  2. 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
  3. Grant roles to groups

    Prism ships with built-in roles:

    RoleGrants
    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-writer

    A grant can also name a single permission. See them all with:

    prism permissions list-grants
  4. 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
  5. 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"
  6. Carve out exceptions with deny

    A deny grant 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
  7. 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 operators

    Every change to grants, roles and memberships is audit logged:

    prism org audit --org acme --limit 100

Tips