> For the complete documentation index, see [llms.txt](https://docs.amigo.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.amigo.ai/developer-guide/classic-api/permissions.md).

# Permissions

Manage access control and permissions for your Amigo implementation.

{% hint style="info" %}
**Classic API.** These role-based permissions apply to Classic API users and organizations. The Platform API uses workspace-scoped API keys for authentication. See [Platform API Authentication](/developer-guide/platform-api/platform-api/authentication.md).
{% endhint %}

## Permission System

### Role-Based Access Control

{% content-ref url="/pages/JUkBiEtDSwySamaxgzVr" %}
[Role-Based Permissions](/developer-guide/classic-api/permissions/role-based-permissions.md)
{% endcontent-ref %}

### Temporary Access

{% content-ref url="/pages/KaUQ2E5z6qfOgD7tg0xU" %}
[Temporary Permission Grants](/developer-guide/classic-api/permissions/temporary-permission-grants.md)
{% endcontent-ref %}

## Key Concepts

<details>

<summary>Roles</summary>

Predefined sets of permissions. Each new organization is seeded with four default roles: DefaultUserRole, DefaultAdministratorRole, DefaultAmigoAdministratorRole, and DefaultSuperAdministratorRole. You can also define fully custom roles with arbitrary names.

</details>

<details>

<summary>Permissions</summary>

Granular access controls for specific operations, expressed as `Category:Action` grants (for example, `Conversation:CreateConversation`) with optional conditions that limit when they apply. See [Role-Based Permissions](/developer-guide/classic-api/permissions/role-based-permissions.md) for the grant format.

</details>

## Security Best Practices

* **Apply least privilege.** Design roles with the narrowest allow grants that still cover the job, and scope almost every grant to the user's own organization. See [Role-Based Permissions best practices](/developer-guide/classic-api/permissions/role-based-permissions.md#best-practices).
* **Prefer temporary grants for debugging.** Request time-limited, per-conversation access instead of holding a broad role. See [Temporary Permission Grants](/developer-guide/classic-api/permissions/temporary-permission-grants.md).
* **Audit permissions regularly.** Review custom roles and active temporary grants (for example, with `forge conversation list-access`) so stale access does not accumulate.
* **Rotate API keys.** API keys inherit their creator's permissions, so set expiration dates and rotate before expiry. See [Authentication](/developer-guide/getting-started/authentication.md).

## Related Topics

* [Authentication](/developer-guide/getting-started/authentication.md)
* [User Management](/developer-guide/classic-api/core-api/users.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.amigo.ai/developer-guide/classic-api/permissions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
