Skip to main content

Role-Based Access Guide

ForgePortal uses role-based access control (RBAC). Your role is assigned by an administrator (via the Admin β†’ Permissions area or your IdP group mapping) and determines which actions you can perform. This page lists the five roles and their permissions.

The five roles​

RoleTypical useScope
platform-adminFull platform control: admin UI, users, settings, plugins, integrations.Global.
template-adminManage templates and scorecards; run templates and actions; read entities and docs. Cannot manage users or admin settings.Global.
team-adminCreate/update entities, run templates and actions, read scorecards and docs. Cannot create/update/delete templates or scorecards.Often scoped to a team (by entity ownership or future scope).
developerRead catalog, run templates and actions, read scorecards and docs. Cannot create or edit entities, templates, or scorecards.General developers.
viewerRead-only: catalog, templates (metadata), action list, scorecards, docs. Cannot run templates or actions.Auditors, read-only users.
tip

Role hierarchy (for display or future use): platform-admin > template-admin > team-admin > developer > viewer. Higher roles have at least the permissions of lower roles where it applies.

Permissions matrix​

The table below is derived from the RBAC configuration. A βœ“ means that role has the permission; a β€” means it does not.

Permissionplatform-admintemplate-adminteam-admindeveloperviewer
Catalog & entities
entity:readβœ“βœ“βœ“βœ“βœ“
entity:createβœ“βœ“βœ“β€”β€”
entity:updateβœ“βœ“βœ“β€”β€”
entity:deleteβœ“β€”β€”β€”β€”
Templates
template:readβœ“βœ“βœ“βœ“βœ“
template:createβœ“βœ“β€”β€”β€”
template:updateβœ“βœ“β€”β€”β€”
template:deleteβœ“βœ“β€”β€”β€”
template:runβœ“βœ“βœ“βœ“β€”
Actions
action:readβœ“βœ“βœ“βœ“βœ“
action:runβœ“βœ“βœ“βœ“β€”
Scorecards
scorecard:readβœ“βœ“βœ“βœ“βœ“
scorecard:createβœ“βœ“β€”β€”β€”
scorecard:updateβœ“βœ“β€”β€”β€”
scorecard:deleteβœ“βœ“β€”β€”β€”
scorecard:evaluateβœ“βœ“β€”β€”β€”
Docs
docs:readβœ“βœ“βœ“βœ“βœ“
Integrations
integration:readβœ“βœ“β€”β€”β€”
integration:manageβœ“β€”β€”β€”β€”
Admin
admin:usersβœ“β€”β€”β€”β€”
admin:settingsβœ“β€”β€”β€”β€”
admin:pluginsβœ“β€”β€”β€”β€”
Audit
audit:readβœ“β€”β€”β€”β€”

Who uses which role?​

  • platform-admin β€” SREs or platform team leads who configure the portal, OIDC, SCM, plugins, and user/role assignments. Only they see the Admin menu (Integrations, Permissions, Plugins, Scan).
  • template-admin β€” People who define golden-path templates and scorecards (e.g. "Create service", "Must have README"). They can run templates and fix actions too.
  • team-admin β€” Team leads who register and update their team’s entities and run templates; they do not define templates or scorecards.
  • developer β€” Engineers who browse the catalog, run templates to create repos/PRs, and check scorecards. They cannot create or edit entities or templates.
  • viewer β€” Read-only access for compliance, auditors, or external stakeholders. They can open the catalog, templates list, action runs, and scorecards but cannot run anything.

How your role is set​

  • OIDC: Your IdP groups (or roles) are mapped to ForgePortal roles in config (e.g. auth.roleMapping). When you log in, your role is resolved from your groups.
  • Admin UI: A platform-admin can assign roles in Admin β†’ Permissions by adding entries (subject ref, role, optional scope). Subject refs are typically user:email or team:slug.

If you believe your role is wrong, contact your administrator or check the configured role mapping and permissions entries.