Skip to content

Dashboard Overview

pocketbase-IAM includes a built-in admin dashboard at /_/iam/. It provides a web UI for managing all IAM resources.

Accessing the Dashboard

Start your PocketBase server and navigate to http://localhost:8090/_/iam/. You must be logged in as a superuser.

Pages

PagePurpose
PoliciesCreate and edit JSON policy documents
RolesDefine roles and attach policies to them
GroupsManage user groups and their policies
UsersView users and their IAM assignments (direct policies, roles, groups)
Managed CollectionsRegister or unregister collections for IAM enforcement
SimulatorTest policy evaluation for any user/action/resource combination

Tech Stack

The dashboard is built with React, Refine, Tailwind CSS, and shadcn/ui. It is embedded in the Go binary — no separate frontend deployment is needed.

Development

To develop the dashboard with hot reload:

bash
cd ui
npm install
npm run dev

The Vite dev server proxies API requests to PocketBase at :8090.

To build the dashboard into the Go binary:

bash
cd ui
npm run build

This outputs to iam/dashboard/, which is embedded via //go:embed.