# Setting Up Permissions

Set permissions in LabAPI's `permissions.yml` file.

Use this file to decide which groups can run TME commands.

1. Open `SCP Secret Laboratory/LabAPI/configs/permissions.yml`.
2. Choose the group you want to edit.
3. Add inherited groups or direct permissions.
4. Save the file.

### How permissions work

* `inherited_groups` copies permissions from other groups.
* `permissions` grants permissions directly to the current group.

Example:

```yaml
owner:
  inherited_groups:
    - default
  permissions:
    - tme.*
```

In this example, `owner` inherits everything from `default`.

It also gets every TME permission through `tme.*`.

***

### Common permission values

```yaml
owner:
  inherited_groups: []
  permissions:
    - tme.* # Allows all TME commands
    - tme.modify.* # Allows modify, including position, rotation, and scale
    - tme.spawn # Allows the spawn command
    - .* # Allows every plugin-defined command
```

Use `tme.modify` to allow the `modify` command and its transform subcommands.

{% hint style="info" %}
Use `tme.*` if a group should access all TME commands.
{% endhint %}

For the full permission list, see [Admin Commands](/tme-docs/documentation/commands/admin-commands.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://thaumiel.gitbook.io/tme-docs/documentation/tutorials/plugin/setting-up-permissions.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.
