> For the complete documentation index, see [llms.txt](https://secret-code.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://secret-code.gitbook.io/docs/creators/secret-chat/permissions.md).

# Permissions

To ensure proper functionality and control over **Secret-Chat**, you’ll need to configure the necessary permissions in your `server.cfg`. Below is a guide to setting up these permissions:

***

## **1. Resource Permission**

Allow the script to manage its permissions:

```plaintext
## Resource permission
add_ace resource.Secret-Chat command.add_ace allow
```

***

## **2. Panel Permission**

### &#x20;**\*   Registering Players to Groups (optional)**

If you want to assign specific players to a group individually, use the following format:

```plaintext
add_principal identifier.license:xxxxxxxx group.ceo #Benito Gomez
```

Replace `xxxxxxxx` with the player’s license identifier and adjust the group as needed (e.g., `group.ceo`).

***

### **\* Global Groups for Chat Panel Access (**&#x72;ecommende&#x64;**)**

Grant access to the chat panel for specific groups globally:

```plaintext
add_ace group.admin Secret-Chat.openChatPanel allow
```

This example grants the `admin` group permission to use the chat panel. You can replace `group.admin` with another group if needed.

***

### **\* Permissions for Panel-Generated Commands**

Enable specific groups to execute commands created in the panel and marked with the \[%admin%] :

```plaintext
add_ace group.admin Secret-Chat.commands allow
```

***

By setting up these permissions, you ensure that access to the chat panel and its commands is fully controlled and customizable for your server's needs.

## EXAMPLES

```
## Resource permission
add_ace resource.Secret-Chat command.add_ace allow

## Registering Players to Groups
add_principal identifier.license:abcdef1234567890 group.ceo # Example: CEO - Benito Gomez
add_principal identifier.license:123456abcdef7890 group.superadmin # Example: SuperAdmin - Maria Lopez

## Permissions for Chat Panel (Groups: CEO and SuperAdmin)
add_ace group.ceo Secret-Chat.openChatPanel allow
add_ace group.superadmin Secret-Chat.openChatPanel allow

## Permissions for Commands (Groups: Admin and Mod)
add_ace group.admin Secret-Chat.commands allow
add_ace group.mod Secret-Chat.commands allow

```

In this example:

* The `ceo` and `superadmin` groups can access the chat panel.
* The `admin` and `mod` groups can only execute commands created in the panel.
* Replace the license identifiers with the appropriate ones for your players.

```plaintext
## Resource permission
add_ace resource.Secret-Chat command.add_ace allow


## Permissions for Chat Panel (By Identifier for CEO and SuperAdmin)
add_ace identifier.license:ghijk1234567890 Secret-Chat.openChatPanel allow # Benito Gomez (CEO)
add_ace identifier.license:123456ghijk7890 Secret-Chat.openChatPanel allow # Maria Lopez (SuperAdmin)

## Permissions for Commands (By Identifier for Admin and Mod)
add_ace identifier.license:234567abcdef8901 Secret-Chat.commands allow # Admin - Alan
add_ace identifier.license:345678abcdef9012 Secret-Chat.commands allow # Mod - Jackeline
```

In this example:

* The players with the specified license identifiers for `ceo` and `superadmin` have permission to access the chat panel.
* The players with the specified license identifiers for `admin` and `mod` can execute commands created in the panel.
* Replace the license identifiers with the correct ones for your players.
