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

# Authorization roles

> Learn how to set permissions using authorization roles.

Authorization roles define the permissions on accessing and using Endor Labs and its features. Each authorization role has a set of associated permissions that determine the extent of access to Endor Labs. Ensure that you assign the right role for the right situation and follow the principle of least privilege (PoLP).

You need to assign an authorization role when you create [authorization policies](https://docs.endorlabs.com/platform-administration/rbac/authorization-policies.md) and [API keys](https://docs.endorlabs.com/platform-administration/api-keys.md#create-an-api-key).

The following roles are available:




&#x20; \- Role: Admin
&#x20; Description: Grants full administrative access to all resources.
&#x20; Intended\_Use: For system administrators.
&#x20; Access: Read and write for all resources.
&#x20; \- Role: Read-Only
&#x20; Description: Grants read-only access to all resources.
&#x20; Intended\_Use: For users who need to view data but not make changes.
&#x20; Access: Read-only for all resources.
&#x20; \- Role: Code Scanner
&#x20; Description: Grants necessary access to scan a project using endorctl.
&#x20; Intended\_Use: For users or CI/CD-based service accounts that run scans.
&#x20; Access: Read and write for projects, repositories, and findings. Create and delete for AI SAST finding feedback. Read-only for installations and all other resources.
&#x20; \- Role: Policy Editor
&#x20; Description: Grants necessary access to manage policies.
&#x20; Intended\_Use: For security teams who define and maintain security policies.
&#x20; Access: Read and write for policies and policy templates, except Package Firewall policies. Package Firewall policies require the Admin role. Read-only for all other resources.
&#x20; \- Role: On-Prem Scheduler
&#x20; Description: Grants necessary access to run \[Outpost]\(/setup-deployment/outpost) and to use \[monitoring scans]\(/setup-deployment/scm-integrations) on supported platforms.
&#x20; Intended\_Use: For on-premises deployment service accounts.
&#x20; Access: Read and write for installations, projects, namespaces, and scan requests. Read-only for all other resources.
&#x20; \- Role: Package Firewall User
&#x20; Description: Grants the access required to authenticate to the \[Package Firewall]\(/package-firewall).
&#x20; Intended\_Use: For API keys used to route package installation traffic through the Package Firewall.
&#x20; Access: Full access to Package Firewall endpoints. Read-only for licenses.
&#x20; \- Role: AI Audit User
&#x20; Description: Grants the least-privilege access required for \[Coding Agent Governance]\(/agent-governance) hooks to submit agent session events and read the active policy snapshot.
&#x20; Intended\_Use: For API keys used by Coding Agent Governance hooks on developer machines.
&#x20; Access: Create for agent hook events, client logs, and queries. Read-only for agent hook policy definitions, agent directory entries, secret rules, the Coding Agent Governance inventory, and system configuration. No access to policy violations or other resources.


&#x20;&#x20;


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.