# Aces & Principals

<figure><img src="/files/aCv4lvTqbooPy8OobozT" alt=""><figcaption><p>Sonoran CMS - QBCore Game Panel Promotional Image</p></figcaption></figure>

## Setup

Ensure you have the following in your `server.cfg` (if you don't permissions won't be able to be granted)

```
add_ace resource.sonorancms command allow
```

## Mapping Ranks to ACE Principal Identifiers

You can select the ranks you would like and input the principal identifier you would like to grant them. This makes it easy to grant users in-game permissions en masse.

<figure><img src="https://i.imgur.com/j5XTpYT.png" alt=""><figcaption><p>Sonoran CMS -QBCore Game Panel - Aces &#x26; Principals</p></figcaption></figure>

You can further customize the permissions each Principal group receives in your `server.cfg`, make sure to follow the conventions outlined in [this guide](https://forum.cfx.re/t/basic-aces-principals-overview-guide/90917).

Additionally, ensure all players have added their [API ID](/cms/developer-api-documentation/api-integration/getting-started/api-id-system.md) to the CMS.

For more details, read our documentation on the "Ace Permission Sync" module for CMS Core [here](/cms/integration-capabilities/in-game-integration-resources/core/core-submodules/ace-permission-sync.md).


---

# Agent Instructions: 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:

```
GET https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/aces-and-principals.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
