Per-User Resource Permissions vs Role-Based Permis...
# ask-a-descoper
n
Per-User Resource Permissions vs Role-Based Permissions We're evaluating Descope for fine-grained, resource-level permissions. Currently, we use Descope for authentication and tenant-specific roles, but we need to manage permissions at a more granular level.
- We need to store and retrieve per-user permissions for specific resources (e.g., "User X has read/write access to object ID 123", "User Y has read-only access to object ID 456")
- These permissions should be manageable via API and ideally included in the JWT token or easily retrievable
Questions:
1. Does Descope support storing per-user permissions (not just roles) for specific resources?
2. Can we store resource-specific permissions (e.g., object123read, object123write) that are tied to individual users rather than roles?
3. Can these permissions be included in the JWT token claims, or is there an API endpoint to retrieve a user's resource-level permissions?
4. If not natively supported, what's the recommended approach?
r
Hi Niv, Descope's Fine-Grained Authorization Capabilities Based on the available documentation, Descope supports fine-grained authorization beyond simple role-based access control. The platform offers authorization models that can handle more granular permissions. Your Specific Questions: 1. Per-User Permissions for Specific Resources: The documentation indicates Descope supports fine-grained authorization, which suggests capability for resource-level permissions beyond basic roles. 2. Resource-Specific Permissions: Fine-grained authorization systems typically allow permissions tied to specific resources. Descope's fine-grained authorization approach should support this pattern. 3. JWT Token Claims & API Retrieval: While the provided source discusses fine-grained authorization concepts, it doesn't detail the specific implementation for JWT claims or API endpoints for resource-level permissions. Check doc: https://www.descope.com/learn/post/fine-grained-authorization
n
@Rahul Rijhwani Do you know if I can use both RBAC and ReBAC? Get a role for the app using a token from RBAC for specific actions, and check actions for particular resources using ReBAC? Can I combine them, or do I need to choose?
r
Yes, You Can Combine RBAC and ReBAC in Descope Descope supports using both RBAC and ReBAC together - you don't need to choose between them. This is actually a recommended pattern to avoid "role explosion" while maintaining flexibility How They Work Together RBAC for Application-Level Permissions: • Roles and permissions are stored in the user's JWT • Use for broad application access (e.g., "can access admin panel", "can view reports") • Available immediately from the token without additional API calls ReBAC for Resource-Level Permissions: • Check specific resource relationships via API • Use for granular control (e.g., "can edit document 123", "owns project 456") • Evaluated dynamically based on relationships between users and resources
🙌 1