> For the complete documentation index, see [llms.txt](https://qacam.qacentral.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://qacam.qacentral.org/group-based-access.md).

# Group based access

To preserve access for players who aren't members of QAC you can enable group access.

You can whitelist certain group roles belonging to the group that owns the game.

{% hint style="info" %}
You do not need to whitelist the group owner's role ID (255) because it is allowed by default.
{% endhint %}

{% hint style="danger" %}
Calling [`AllowGroupRoles()`](/api-reference/allowgrouproles.md) when the game is not owned by a group will cause an error.
{% endhint %}

{% code title="AccessManager" lineNumbers="true" %}

```lua
QACAM.configuration:AllowGroupRoles({
    254 -- Admin
})
```

{% endcode %}
