# Whitelist Management

When enabled, the whitelist is a list of players who can access the server. All other players will be blocked.&#x20;

The player ID is the gamertag/username of the player on XBOX or PlayStation. You do not need to specify the platform when adding a user to the whitelist.

***

## Whitelist Activation

> ### **📟**
>
> ### *server.enablewhitelist "0/1"*
>
> *Toggles the server's whitelist.*

***

## Whitelist Viewing

> ### **📟**
>
> ### *global.whitelist*
>
> This command prints the current whitelist to the console log, if it has been enabled.

***

## Whitelist Management

> ### **📟**
>
> ### *server.whitelistID "ID"*
>
> This command adds the target player to the Whitelist, where "ID" is the in-game name of the chosen player.

> ### **📟**
>
> ### *server.removewhitelist "ID"*
>
> This command aremoves the target player from the Whitelist, where "ID" is the in-game name of the chosen player.

> ### **📟**
>
> ### *global.clearwhitelist*
>
> This command clears all players from the whitelist.&#x20;
>
> **NOTE**: This will not change whether the whitelist remains active, so make sure to set `server.enablewhitelist "0"` to go back to an open server.
