Recipes
Short, copy-ready solutions for common identity and access problems, from sharing and MFA rules to offboarding, plan limits, and audit archiving.
The guides explain how each feature works. Recipes start from a problem instead ("a customer requires MFA", "a contractor's access must end in March") and show the few calls that solve it, with the details that matter in production.
Every recipe has the same shape: the problem in a sentence or two, the solution in plain words, then the code and the notes you need before you ship it. Each ends with a link to the guide that explains the feature in full.
In the examples, credential is the caller's credential: { token } for a session token or API key, or
{ headers } for an incoming request. Every call is authorized for the caller, applied in one transaction, and
audited, like the rest of the API. Unfamiliar terms are defined in the glossary.
Sharing and access questions
- Share a resource with relationships: let people share their own folders without editing policies.
- Answer "who can?" and "what can they do?": explain access to reviewers with the real evaluator.
- Test a policy before saving it, and roll back a bad one: catch mistakes before they lock people out.
- Role hierarchy and business-hours access: build roles on each other and limit when a binding applies.
- Project teams and start dates: memberships and bindings that start and end by themselves.
- Tell people how to get access instead of just "denied": offer step-up, terms, activation, or a package request.
- Guardrails, terms of use, and change previews: invariants, impact previews, and agreements.
Sign-in and devices
- Require MFA or restrict sign-in methods for one organization: tighten sign-in for one customer.
- Remember this device after MFA: skip the code on a trusted browser for a bounded time.
- Devices, sign-out everywhere, and incident response: device lists, revoking sessions, and unlocking accounts.
Support and privacy
- Support: see the product as a member sees it: bounded, audited "view as" sessions.
- Export everything stored about a person: answer data-subject access requests.
- Render the outbox's emails: send IAM's messages through your provider with your links.
Tenancy and limits
- Plan limits and usage: enforce what each SaaS plan includes and meter usage.
- Bulk onboarding and directory attributes: create people in bulk and map directory data from SCIM.
- Move people over from another system: import organizations, people, and roles, and choose how each group signs in afterwards.
- Store data in libSQL or Turso: local files, replicas, and remote databases.
Access lifecycle
- Just-in-time elevation instead of standing admin roles: eligible roles with justification, MFA, and approval.
- Contractors: schedule deactivation: accounts that switch off on their end date.
- API key hygiene: label, expire, and revoke unused keys.
- Configuration as code: review and apply roles and policies from version control.
- Offboard a person: remove all access in one step and hand resources to a successor.
Operations
- Verify and archive the audit chain: prove the audit log was not edited.
- Call a downstream service with a stateless assertion: let other services trust who is calling.
- Observe latency and outcomes: feed IAM spans to your metrics.
- Webhooks: only denials, only some resources, and redelivery: filter events and replay missed deliveries.
Browse by page
Sharing and access questions
Relationships, access reviews, policy testing, time-bound roles, access paths, and guardrails.
Sign-in and devices
Per-organization MFA, remembered devices, and session control.
Support and privacy
Impersonation, data-subject export, and email rendering.
Tenancy and limits
Plan limits, bulk onboarding, migrating from another system, and libSQL storage.
Access lifecycle
Just-in-time elevation, expiring accounts, keys, configuration as code, and offboarding.
Operations
Audit chain, assertions, observability, and webhooks.
Was this page helpful?
Last updated on
Model access and budgetsnew
Decide who may call which AI models, cap what people, teams, and agents spend, meter every call, and keep provider keys away from callers with a gateway.
Sharing and access questions
Recipes for sharing with relationships, answering who can do what, testing and rolling back policies, time-bound roles, access paths, and guardrails.