# 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()`](https://qacam.qacentral.org/api-reference/allowgrouproles) 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 %}
