Resolve the requested resource
Load the project, workspace, or other resource through the consumer app's own data layer.
Developer guide / Permissions
Perminister grants are scoped to an organization and one of its products, then optionally to a project or workspace. The consumer app still enforces each decision on its server.
Organization Owners and Admins create grants in the dashboard. Product IDs belong to an organization; project/workspace IDs and actions are supplied by each consumer application.
| Scope part | Identifier | Use |
|---|---|---|
| Organization | organizationId | Required customer boundary on every grant and authorization request. |
| Product | productId | Grant actions across one product in that organization. |
| Project | projectId | Limit actions to a project that the consumer app owns. |
| Workspace | workspaceId | Limit actions to a workspace that the consumer app owns. |
POST /api/authorize checks the organization, product, resource, and action. App sessions and user-owned keys require an active product membership and current grant. Service-principal keys use their configured scope and actions and require an active integration. The consumer application still loads and enforces access against its own resource.
Load the project, workspace, or other resource through the consumer app's own data layer.
For an app session or user-owned key, check that the account has an active grant for the requested action and resource. For a service-principal key, Perminister checks that key's configured scope and actions and the integration's active status.
Do not rely on hidden UI controls as authorization. The consumer app enforces every protected operation against its own resource.