Skip to content
LogoLogo

Permissions

Permissions helps your app decide who can do what. For example, everyone on a team might read a project, while only its owner can delete it or invite people.

You define those rules once, assign access to the right people, and check the rules from the backend that owns your data. The service runs on AWS and can be used with SaaSLayer Users or an existing identity provider.

Already use Auth0, Clerk or your own sign-in service? Keep it. Your backend can verify the existing session and ask Permissions whether that person may perform an action. You don't need to migrate your sign-in flow or adopt SaaSLayer Users. See keep your existing sign-in for the integration pattern.

Users handles sign-in. Your backend verifies the session and asks Permissions whether to allow a protected action.

What you can build

Start with one concrete rule in your app:

Your app needs…A starting model
Owners can edit; members can read.Two roles with different permissions.
Each team sees only its own projects.Scoped access that keeps teams' data separate.
Someone can share one document.A grant for that particular resource.
Customers need keys for scripts or integrations.API keys with limited actions, workspace access and expiration.
A support person needs temporary access.A bounded session, added when you need that workflow.

You can begin with simple roles. Conditions, approvals, delegation and other features are there for the apps that need them; they aren't prerequisites for making your first access check.

How the docs are organized

For a first integration, read these in order:

  1. Quickstart: create a small access model and make a check.
  2. Core concepts: translate your app's people and data into the terms used by the API.
  3. Permission checks: enforce a decision in your app's backend.

Then use the guide that matches the problem in front of you:

GuideUse it when…
Model your authorizationYou're deciding how teams and roles fit your app.
Hierarchy and namespacesYou need more detail on boundaries and naming.
Policies and conditionsAccess depends on more than a role, such as ownership or time.
API keysYou want to issue, verify, rotate or revoke keys for your app's users and integrations.
Access adminsYou need to manage who administers the deployment.
Support staffYou need controlled support access to an app user's view.
Operations and auditYou need history and an account of access changes.
Delegated sessionsA service or support person needs temporary authority.
Federated principal authA workload needs to authenticate with OIDC, Kubernetes or AWS IAM.
Agent delegationAn AI agent needs limited access on someone's behalf.
Access requestsPeople need to request access and get approval.
Event deliveryYour app needs notifications about access workflows.

The sidebar groups the later guides so you can leave them until they're useful.

API reference

Your deployment serves its OpenAPI document at GET <your Permissions API base URL>/openapi.json. This is a public, read-only schema endpoint, not a key that grants access to protected operations. Use your own deployment's URL when exploring the API.

The normal implementation path

For a project tracker, the first working flow might be:

  1. Create an organization and workspace for a team.
  2. Identify the person who is using your app.
  3. Define an owner or member role and its permissions.
  4. Assign that role within the right team or workspace.
  5. Check access before your backend reads or changes a project.
  6. Test an allowed request and a denied request from another team.

Keep that first model small. Add sharing, conditions or approvals when a real part of your app needs them. Continue with the Quickstart.