> For the complete documentation index, see [llms.txt](https://ksaar.gitbook.io/ksaar-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ksaar.gitbook.io/ksaar-documentation/les-workflows/creer-des-pages/ajouter-au-x-groupe-s.md).

# Ajouter au(x) groupe(s)

L'action **Ajouter au(x) groupe(s)** permet d'ajouter l'utilisateur connecté à un ou plusieurs groupes existants. Cette action est particulièrement utile lorsque vous devez gérer les autorisations des utilisateurs et les permissions des groupes.

Pour utiliser cette action, vous devez choisir à quel groupe vous voulez ajouter l'utilisateur  connecté. Le groupe doit déjà exister, vous ne pourrez pas créer de groupe grâce à cette action.

Cette action peut servir à ajouter des utilisateurs à des groupes en fonction de leur réponse à un QCU. Prenons l'exemple d'un remplissage de formulaire :&#x20;

1️⃣ Créez vos [groupes](/ksaar-documentation/utilisateurs/groupes.md).

<figure><img src="/files/HmxWQ3glfZzOdKk7yppE" alt="" width="563"><figcaption><p>Exemple de groupes créés</p></figcaption></figure>

2️⃣ Dans un workflow, ajoutez un champ QCU permettant à l'utilisateur de choisir à quel groupe il appartient.

<figure><img src="/files/Csa4RKT1H4vyJlP76yvK" alt=""><figcaption><p>Exemple d'un questionnaire</p></figcaption></figure>

3️⃣ Ajoutez l'utilisateur au groupe qu'il a sélectionné.

<figure><img src="/files/CLL7cYetJyffDvtHdelQ" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ksaar.gitbook.io/ksaar-documentation/les-workflows/creer-des-pages/ajouter-au-x-groupe-s.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
