What RBAC means here
GoalGen uses Clerk with public metadata (not Organizations) for a lightweight role system. The in-app RBAC screen (/creator-studio/admin/roles) lets authorized admins search users and update app roles and Creator Studio roles stored on each user.
RBAC in the UI is platform administration: who can administer users and access. It is separate from content work (templates, review queue) described in Content library.
Two metadata fields
| Field | Purpose |
|---|---|
publicMetadata.role | App-wide role: member, affiliate, Genners (stored as charter), admin, super_admin. |
publicMetadata.studioRole | Creator Studio program: creator, founder, admin, super_admin, or unset. |
Display name: Genners
Genners is the product name for thecharter role: early supporters, beta participants, and equity-aligned backers. The Clerk key remains charter so existing integrations stay stable.
Other app roles
- Affiliate — referral and marketing partners.
- Admin / Super admin — staff; super admins can assign the
super_adminapp role to others.
Session token (JWT)
For server-side checks without an extra round trip, the Clerk session token should include:metadata with currentUser().publicMetadata when resolving roles.
Sidebar entry
In the main app sidebar:- Creator Studio section → Creator-S opens Creator Studio (for eligible users).
- Admin section → RBAC opens the roles admin UI (admin-only).
Security notes
Public metadata is readable in the client; only the server or Clerk Dashboard should write roles. The RBAC UI uses server actions with an admin check.
FAQ
Why not Clerk Organizations?
Why not Clerk Organizations?
GoalGen’s RBAC guide uses metadata-based roles so teams without orgs still get a clear permission model. You can migrate to Organizations later if needed.
Where is RBAC documented for developers?
Where is RBAC documented for developers?
The repo includes
apps/app/docs/clerk-rbac-setup.md with Clerk dashboard steps and field reference. This page is the user-facing summary.I don’t see RBAC in the sidebar
I don’t see RBAC in the sidebar
Related
Creator Studio overview
Product vs content vs platform navigation.
Content library
Templates, review, creators, settings.