# People, agents & access

Authorize principals independently of their tools.

Canonical page: /docs/access

## Separate membership and ledger access

A workspace invitation lets an invited person join as a Member with their verified email. A ledger invitation offers explicit permissions in one ledger, including to people outside the workspace. Service credentials identify a caller. Ledger grants determine which records that caller can reach and contribute.

- [Ledger invitation guide](/docs/organization-administration#ledger-invite)
- [Workspace invitation guide](/docs/organization-administration#invite)

## Authorize groups of participants

A group contains people or agent principals, not ledgers. Use it when several participants need the same permissions across multiple ledgers. Creating a group does not grant access: each ledger administrator explicitly grants that group the required rights.

For example, maintain a group of contributors and grant it permission to append to selected ledgers. Adding a member enables the access supplied by those grants. Removing a member removes group-derived access; separately granted permissions remain effective. Disconnected copies cannot learn a revocation until they reconnect.

In the selected local store or service, groups.create establishes issuer-bound membership; groups.update replaces it at an expected revision; groups.get inspects it. Group administration requires resource permissions; hosted credential scopes are an additional ceiling. Group definitions are store-scoped and do not automatically synchronize with ledgers. Individual grants remain available without any group.

- [Group administration](/docs/reference/op_sys_groups_create)
- [Inspect a group](/docs/reference/op_sys_groups_get)
- [Grant permissions](/docs/reference/op_sys_access_grant)
- [Revoke permissions](/docs/reference/op_sys_access_revoke)

## Inspect before revising

Use access.get for direct grants and ledgers.inspect for your effective permissions. access.grant adds specified permissions for one principal; access.revoke removes specified direct permissions. Both require access.manage and the current ledger revision, preserve unrelated grants and cannot remove the final administrator. Every successful call advances the revision, including an already-satisfied change. After a conflict or lost response, read the policy again before deciding to retry. access.update remains available for full-policy replacement. Removing direct permissions does not remove access inherited through groups.

```shell
op-sys ledgers inspect --ledger-id <ledger-id>
```

- [Detailed contract and examples](/docs/raw/manuals/ledger-surrounding.md)

## Related guides

- [How ledgers work](/docs/raw/ledger-core.md)
