Product-level admins, global admins, analysts, reviewers, viewers โ a walkthrough of every permission boundary and why they matter for enterprise compliance.
FlowSquad's Role-Based Access Control (RBAC) system defines five roles arranged in a hierarchical capability pyramid. Each role is scoped either globally (across the entire FlowSquad instance) or per-product (within a single product workspace). Understanding this hierarchy is essential for designing a secure, auditable user provisioning strategy.
Unrestricted access to all system configuration: LLM provider settings, VectorDB connections, SSO/SAML configuration, license management, instance-wide audit logs, and all product workspaces. Can create, delete, and reconfigure any product. Intended for 1โ3 individuals (typically the platform owner or DevOps lead).
Full control within an assigned product: configure integrations (Jira, Confluence, GitHub), manage product-level LLM overrides, invite and assign users to the product, set workflow tabs (SAFe/Scrum/Kanban), configure branching rules, and approve generated content. Cannot access other products or system-level settings.
Create and trigger AI generation: run Epic/Story/Task decomposition, initiate code analysis, generate HLD/LLD, create test cases, run quality scans. Can edit and refine generated content. Cannot manage users, configure integrations, or approve final exports to Jira/Confluence.
Read all generated content within an assigned product, add inline comments and ratings to Epics/Stories/HLD/LLD, and approve or reject content for export. Cannot trigger new AI generation or modify configuration. Intended for tech leads and architects who review AI output quality.
Read-only access to finalized, approved content within an assigned product. Can view Epics, Stories, Tasks, HLD/LLD, and test cases but cannot comment, generate, configure, or export. Intended for stakeholders, PMs, and auditors who need visibility without write access.
The distinction between Global Admin and Product Admin is the single most important RBAC boundary in FlowSquad. Product Admins have deep operational control over their product, but they operate within a container whose walls are defined by the Global Admin. The following matrix details the 23 key capabilities and where the boundary falls.
| Capability | Global Admin | Product Admin | Analyst | Reviewer | Viewer |
|---|---|---|---|---|---|
| Configure LLM Provider (global) | โ | โ | โ | โ | โ |
| Configure LLM Override (product) | โ | โ | โ | โ | โ |
| Create / Delete Products | โ | โ | โ | โ | โ |
| Manage Instance Users (all) | โ | โ | โ | โ | โ |
| Manage Product Users | โ | โ | โ | โ | โ |
| Configure SSO / SAML | โ | โ | โ | โ | โ |
| Configure VectorDB Connection | โ | โ | โ | โ | โ |
| Manage Jira/Confluence Integration | โ | โ | โ | โ | โ |
| Configure Workflow Tabs | โ | โ | โ | โ | โ |
| Trigger AI Generation | โ | โ | โ | โ | โ |
| Edit Generated Content | โ | โ | โ | โ | โ |
| Approve / Reject Content | โ | โ | โ | โ | โ |
| Export to Jira / Confluence | โ | โ | Limited | โ | โ |
| Run Quality / OWASP Scans | โ | โ | โ | โ | โ |
| Add Comments / Ratings | โ | โ | โ | โ | โ |
| View Finalized Content | โ | โ | โ | โ | โ |
| View Audit Logs (instance) | โ | โ | โ | โ | โ |
| View Cost Tracker | โ | โ | โ | โ | โ |
FlowSquad's frontend performs server-side role hydration on every authenticated session: when a user logs in, their effective permissions set is returned as part of the session token and used to conditionally render UI elements. Buttons for "Generate", "Export to Jira", "Delete Product", and "Manage Users" are not merely disabled for unauthorized users โ they are completely absent from the DOM. This prevents accidental clicks, discourages social-engineering attempts ("just click the hidden button"), and reduces information leakage about available actions.
Role-based rendering covers 47 distinct UI elements across the FlowSquad interface โ including navigation tabs, action buttons, inline edit controls, admin panel sections, and export menus. Each element is tagged with a required minimum role, and the session hydration layer evaluates each tag before rendering the component tree.
UI-level hiding is a usability feature, not a security control. All FlowSquad API endpoints enforce declarative RBAC middleware that re-validates permissions on every request, regardless of what the client claims. Each API route is decorated with a required role annotation. The middleware extracts the JWT from the Authorization header, decodes the user's role and product scope, and returns HTTP 403 before the route handler executes if the role is insufficient.
This dual enforcement โ UI layer and API layer โ means that even a technically sophisticated user who constructs raw API requests cannot bypass permissions. All permission failures are logged as audit events with timestamp, user ID, source IP, attempted action, and the endpoint that rejected the request. Unusual patterns (e.g., repeated 403s from the same user) can trigger alerts in SIEM integrations via FlowSquad's webhook audit log export.
During the FlowSquad Setup Wizard (Step 7: User Management), the Global Admin provisions the initial user roster by email, assigns roles, and optionally imports users from an SSO/SAML directory. Role assignment is also available post-setup from Admin โ Users โ Edit User, where the Global Admin can change a user's global role or per-product role assignments at any time. Changes take effect on the user's next request โ existing sessions are invalidated within 5 minutes via JWT expiry.
For large organizations syncing from Active Directory or Okta, FlowSquad supports SCIM 2.0 provisioning (roadmap Q2 2026) to automate role assignment based on directory group membership, eliminating manual onboarding for new team members.
Yes. A user can be an Analyst in Product A, a Reviewer in Product B, and have no access to Product C. Product-level role assignments are independent of each other and of the user's global role. The effective permissions for any given request are computed from the union of the user's global role and their product-specific role, with the more permissive role winning within the product scope.
Custom role definitions are on the FlowSquad roadmap for Q3 2026. In the current version, the 5 built-in roles cover the vast majority of enterprise access control patterns. For edge cases, the Product Admin role with selective feature tab disabling (e.g., disabling the Quality tab for a specific product) can approximate custom role behavior.
MFA (TOTP or hardware key) is enforced at login for all users, regardless of role. Global Admin accounts can be configured to require MFA re-authentication before accessing Admin-level settings (system config, user management) even within an active session. This provides privilege escalation protection equivalent to sudo re-authentication in Unix systems.
Yes. When SAML 2.0 SSO is configured, FlowSquad can map IdP group attributes to FlowSquad roles. For example, the AD group flowsquad-admins can map to Global Admin, and flowsquad-analysts can map to Analyst. Group-to-role mapping is configured in Admin โ SSO Settings โ Role Mapping during Setup Wizard Step 6.
Downgrading a role (e.g., from Analyst to Viewer) removes the user's ability to trigger actions but does not delete any content they previously created. Generated Epics, Stories, and analysis results remain accessible in read-only form. If an Analyst is removed from a product entirely, their previously generated content is retained and reassigned to the Product Admin for review.