Content Deep Dive

Per-workspace roles: Custom roles scoped to a resource type in WorkOS

Blog post from WorkOS

Post Details
Company
Date Published
Author
Maria Paktiti
Word Count
2,377
Company Posts That Month
36
Language
English
Hacker News Points
-
Post removed?
No
Summary

WorkOS FGA resource-scoped roles let organizations assign different permissions to the same member for individual resources such as workspaces or projects, avoiding the proliferation of organization-wide role combinations as products add hierarchical entities. Resource types, configured only in the WorkOS Dashboard, define the authorization hierarchy, while permissions, custom or environment roles, resource instances, and assignments are managed through APIs; permissions and roles must be explicitly scoped to the intended resource type, and parent-level roles can grant access to child resources when they include child-type permissions. Environment roles apply consistently across all organizations, whereas custom roles belong to one organization and require stable, immutable slugs that follow specific naming rules. Access checks automatically account for direct assignments, inherited permissions, and baseline organization roles, with additional endpoints available for retrieving effective permissions or resource and membership access relationships. Because resource scopes and slugs cannot be changed after creation, incorrectly modeled permissions or roles require a staged migration involving replacement objects, application updates, reassignment of members, and eventual deletion after active assignments and group mappings are removed.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Platform Engineering 1 1,518 372 100 -25%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.