Components · Reference
Project access matrix
Show a reference table for role and API-key grants.
Preview
Role grants
| Resource | Action | Owner | Viewer |
|---|---|---|---|
Reportreport | Readread | Allowed | Allowed |
Reportreport | Publishpublish | Allowed | Not allowed |
API-key assignable permissions
| Resource | Action | User key | Organization key |
|---|---|---|---|
Reportreport | Readread | Allowed | Allowed |
Reportreport | Publishpublish | Not allowed | Allowed |
Usage
tsx
import {
ProjectAccessMatrix,
type ProjectAccessMatrixProps,
} from "@krak-stack/auth/project-access-matrix/react";
export const AccessReference = (props: ProjectAccessMatrixProps) => (
<ProjectAccessMatrix {...props} />
);
Pass the project’s access definition and optional localized labels. Each table shows which actions a role grants or an API key can be assigned. The matrix is a reference, not an authorization check.
See Project access control for defining roles and enforcing permissions on the server.