> For the complete documentation index, see [llms.txt](https://docs.otherside.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.otherside.xyz/platform-documentation/creation/worlds/invite-players/role-groups.md).

# Setting Role Groups

How to setup what Roles users have

## 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="https://970394512-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft3SBfOIsRz4GCNFFpae7%2Fuploads%2Fgit-blob-da133ac660f90c34f7ca3c5166bf8707d2de0830%2Fimage%20(541).png?alt=media" 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="https://970394512-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft3SBfOIsRz4GCNFFpae7%2Fuploads%2Fgit-blob-f02444dad497b8428257f03281802c4c4bbb9e70%2Fimage%20(555).png?alt=media" 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](https://docs.otherside.xyz/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="https://970394512-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft3SBfOIsRz4GCNFFpae7%2Fuploads%2Fgit-blob-58b13ef72445228bf6e3f47b320942ab66fc7cc1%2Fimage%20(147).png?alt=media" 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](https://docs.otherside.xyz/platform-documentation/creation/unreal-development/features-and-tutorials/the-m2-example-plugin/in-game-roles.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.otherside.xyz/platform-documentation/creation/worlds/invite-players/role-groups.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
