> 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/api-reference/getaccessforplayer.md).

# GetAccessForPlayer()

{% hint style="warning" %}
This function requires HTTP Service access to be enabled.
{% endhint %}

{% hint style="warning" %}
If the module is not able to interact with the remote QAC API or receives an error, it will return false, causing the player to be kicked with an "Unable to verify access" error.
{% endhint %}

Check if a player is allowed to play based on Roblox group roles or Discord roles requirements.

```lua
GetAccessForPlayer(player: Player): GetAccessResult
```

## Parameters

`player` <mark style="color:blue;">Player</mark>\
A player instance to get access permission for

## Returns

[GetAccessResult](/types/getaccessresult.md)\
A table containing the result of access validation for a player
