# Setting Role Groups

## Overview

Role groups control who can access your world and what **game roles** they have, e.g. Participant, Presenter, etc. Groups can be configured based on individual email address or whole email domains, e.g. improbable.io.

Each role groups defines a list of games roles which affect what capabilities the relevant user(s) have in the world, what their character looks like, and more. Each user has a list of game roles available to see (see the screenshot below).

<figure><img src="/files/NnTrVq7axdFvyQlNrRUl" alt=""><figcaption></figcaption></figure>

When a player spawns into a virtual world, they are assigned one of their available games roles.

Players can change which game role they have active in the settings menu. This functionality is useful because it lets a special guest switch between being a presenter or a regular participant, or the like.

<figure><img src="/files/uCUniwmsvPznA0I2oHlC" alt=""><figcaption></figcaption></figure>

## Setting Roles when Starting Worlds <a href="#playerrolesandcapabilities-configuringrolesinthewebui" id="playerrolesandcapabilities-configuringrolesinthewebui"></a>

You can configure role groups for a world when [Starting a World](/platform-documentation/creation/worlds.md) or while its running, to setup when starting you will find the Access groups in the Optional Settings section.

<figure><img src="/files/p6eZBwtCyuiFkJoFVFY2" alt=""><figcaption><p>Setting up Roles in the Optional Settings when launching a world</p></figcaption></figure>

By default, the world has a single role group for the host providing them with all game roles.

You can configure access for either specific emails or email domains so <user@improbable.io> and for the whole of the improbable.com domain. This will only work for users that have access to the site, to allow others access, consider using the Create Guest Links option.

## Applying the roles in-game

For details on how to configure the roles game-side, see [In-Game Roles](/platform-documentation/creation/unreal-development/features-and-tutorials/the-m2-example-plugin/in-game-roles.md)


---

# 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://docs.otherside.xyz/platform-documentation/creation/worlds/invite-players/role-groups.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.
