> ## Documentation Index
> Fetch the complete documentation index at: https://phidatainc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Symmetric

> Symmetric-key (HS256) RBAC examples for AgentOS: basic JWT scopes, per-agent permissions, advanced scope formats, custom scope mappings, cookie tokens, and per-user isolation.

| Example                                                                                                 | Description                                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Advanced Scopes](/examples/agent-os/rbac/symmetric/advanced-scopes)                                    | Issue HS256 tokens across five privilege tiers to show global, per-agent, and wildcard scopes filtering the agent list and gating agent runs.                     |
| [Agent Permissions](/examples/agent-os/rbac/symmetric/agent-permissions)                                | Define per-agent permission scopes to control which users can run which specific agents.                                                                          |
| [Symmetric RBAC Basic](/examples/agent-os/rbac/symmetric/basic)                                         | Protect AgentOS endpoints with HS256 JWTs via AuthorizationConfig and default scope mappings, minting user and admin test tokens.                                 |
| [Custom Scope Mappings Example](/examples/agent-os/rbac/symmetric/custom-scope-mappings)                | Define custom scope mappings for your AgentOS endpoints.                                                                                                          |
| [Symmetric RBAC with Cookie Tokens](/examples/agent-os/rbac/symmetric/with-cookie)                      | Enable RBAC (Role-Based Access Control) with JWT token authentication in AgentOS using middleware with cookie-based tokens.                                       |
| [RBAC + Per-User Data Isolation Example with AgentOS](/examples/agent-os/rbac/symmetric/user-isolation) | Scope non-admin JWT callers to their own sessions, memories, and traces with AuthorizationConfig(user\_isolation=True), while agent\_os:admin bypasses isolation. |
