Skip to main content
The ABAC pattern controls access based on resource attributes like status, visibility, or classification. Use ABAC when permissions depend on dynamic properties rather than fixed roles. When to use ABAC:
  • Resources have different visibility levels (public, private, confidential)
  • Access depends on resource state (draft, published, archived)
  • Geographic or time-based restrictions apply
  • Complex conditional logic combines multiple attributes
RBAC vs ABAC: Use RBAC for stable organizational roles. Use ABAC when access rules change based on resource properties or context.

Public or private resources

Control access based on resource visibility. Public resources are readable by anyone, private resources require specific permissions.
Ensure your application sets the appropriate attribute when creating resources.

Common ABAC patterns

Explore these additional attribute-based patterns:

Next steps

With your ABAC policy defined:
  1. Add facts: Store resource attributes and user context in Oso Cloud
  2. Make authorization requests: Check permissions in your application code
  3. Test scenarios: Verify policies work with different attribute combinations