> For the complete documentation index, see [llms.txt](https://ajuda.rnp.br/conferenciaweb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ajuda.rnp.br/conferenciaweb/manuais-de-uso-do-servico/manual-do-administrador/setup-de-grupos-moodle.md). Agents can also search and read this documentation through its [MCP server](https://ajuda.rnp.br/conferenciaweb/~gitbook/mcp).

# Setup de grupos Moodle

Este serviço conecta e sincroniza os grupos de um curso no Moodle com a ferramenta de agendamento via LTI do ConferênciaWeb. Ele garante que a informação do grupo de cada usuário seja repassada à ferramenta, permitindo a exibição das sessões e do histórico específicas para cada grupo.

**Requisitos**:

* Ter privilégio de admin no Moodle
* Ter o LTI já configurado no seu ambiente Moodle
* Ter grupos separados em pelo menos um curso
* Moodle com Web services habilitado

Sendo admin do Moodle:

* Vá até a lista de Serviços externos (Administração do site → Servidor → Web services → Serviços externos ), encontre o confweb-lti-external-service e clique em Funções.

<figure><img src="https://4071737184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M7hXYp2PZ9COGqQOKpE%2Fuploads%2FRK9IOPSW1H2YI6bjhSyz%2Fgrupos1.webp?alt=media&amp;token=1540a5d8-70e5-4a36-b9cc-ab75432c258e" alt=""><figcaption></figcaption></figure>

* Na tela seguinte, clique em Adicionar funções.

<figure><img src="https://4071737184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M7hXYp2PZ9COGqQOKpE%2Fuploads%2FYnUKnba3boSnGiGl8HfW%2FUntitled%20(1).png?alt=media&amp;token=86888f69-3e91-4e37-8562-9778c8aed09b" alt=""><figcaption></figcaption></figure>

3. Selecione as seguintes funções

   * `core_group_get_activity_groupmode`
   * `core_group_get_course_user_groups`
   * `core_course_get_course_module_by_instance`
   * `core_group_get_course_groups`
   * `core_webservice_get_site_info`

Clique em Adicionar funções.

<figure><img src="https://4071737184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M7hXYp2PZ9COGqQOKpE%2Fuploads%2FcICSvyMZ6dXnrWtcz9lD%2Fgrupos3.webp?alt=media&amp;token=49fd2cbf-555f-4376-93ff-bcefb31c3d62" alt=""><figcaption></figcaption></figure>

Clique em Adicionar funções.

<figure><img src="https://4071737184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M7hXYp2PZ9COGqQOKpE%2Fuploads%2FinE2P1s2fb2rauI150bg%2Fgrupos4.webp?alt=media&amp;token=675ca90e-0e93-4be8-a15e-735d506c9112" alt=""><figcaption></figcaption></figure>

Na página de configuração do curso (Página inicial do curso → Configurações), na aba de Grupos é necessário que o campo Modalidade do grupo seja Grupos separados ou Grupos visíveis e o campo Forçar modalidade do grupo seja Sim, conforme abaixo:

<figure><img src="https://4071737184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M7hXYp2PZ9COGqQOKpE%2Fuploads%2FjA041wjCukDV83cFW0fZ%2FUntitled%20(8).png?alt=media&amp;token=69feb825-9660-4cb0-9254-d82122d175c9" alt=""><figcaption></figcaption></figure>


---

# 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://ajuda.rnp.br/conferenciaweb/manuais-de-uso-do-servico/manual-do-administrador/setup-de-grupos-moodle.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.
