
AWS Cognito authenticates users and manages user pools with groups, custom attributes, and federated identities. Cerbos uses Cognito's user pool data to make fine-grained authorization decisions that go beyond what Cognito's built-in group-based access control can express.
Map Cognito user pool groups from the cognito:groups claim directly to Cerbos principal attributes for policy evaluation
Use Cognito custom attributes like department, tenant ID, and team as context in Cerbos authorization policies
Works with Cognito user pools, federated identities, and IAM integration to add fine-grained application-level authorization
AWS Cognito handles authentication, confirming who a user is. Cerbos handles authorization, deciding what that user can do. Together they give you a complete access control stack without coupling identity logic to business rules.
Cerbos lets you write fine-grained, context-aware authorization policies in human-readable YAML. Policies are decoupled from application code so product and security teams can update permissions without a release cycle.
Because Cerbos runs as a stateless Policy Decision Point (PDP) next to your application, authorization checks are sub-millisecond and scale horizontally with your infrastructure.
Cognito user pool groups are included in the cognito:groups claim in the ID and access tokens. Cerbos receives these groups as principal attributes, enabling policies that go beyond group membership checks. You can combine Cognito groups with resource attributes and request context for fine-grained decisions like "members of the Editors group can only edit articles in their assigned region."
Yes. Cognito user pools support custom attributes (prefixed with custom:) like department, team, or tenant ID. These are included in the ID token and can be passed to Cerbos as principal attributes. Your policies can reference these custom attributes alongside Cognito groups for precise authorization rules.
Yes. Whether users authenticate directly against a Cognito user pool or federate through SAML, OIDC, or social providers, the resulting Cognito token contains the same groups and attributes. Cerbos works with the Cognito token regardless of how the user originally authenticated.


What is Cerbos?
Cerbos is an end-to-end enterprise authorization software for Zero Trust environments and AI-powered systems. It enforces fine-grained, contextual, and continuous authorization across apps, APIs, AI agents, MCP servers, services, and workloads.
Cerbos consists of an open-source Policy Decision Point, Enforcement Point integrations, and a centrally managed Policy Administration Plane (Cerbos Hub) that coordinates unified policy-based authorization across your architecture. Enforce least privilege & maintain full visibility into access decisions with Cerbos authorization.