# 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.


---

# 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://rust-console-edition.gitbook.io/community-servers/feature-guides/whitelist-management.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.
