Skip to content

Components · Reference

Project access matrix

Show a reference table for role and API-key grants.

Preview

Role grants

ResourceActionOwnerViewer
ReportreportReadreadAllowedAllowed
ReportreportPublishpublishAllowedNot allowed

API-key assignable permissions

ResourceActionUser keyOrganization key
ReportreportReadreadAllowedAllowed
ReportreportPublishpublishNot allowedAllowed

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.