# Affecter ou retirer une licence

### Description

Ajoute ou supprime un utilisateur d’un groupe dédié d’attribution de licences afin de contrôler l’attribution des licences. Le groupe de licences doit correspondre à la convention de nommage configurée.

### Emplacement

Utilisateur → Général → Attribuer ou retirer une licence

**Nom complet du runbook**

rjgit-user\_general\_assign-or-unassign-license

### Autorisations

#### Autorisations d’application

* **Type**: Microsoft Graph
  * User.Read.All
  * GroupMember.ReadWrite.All
  * Group.ReadWrite.All

### Paramètres

#### Nom d’utilisateur

Nom principal d’utilisateur de l’utilisateur cible.

| Propriété         | Valeur |
| ----------------- | ------ |
| Obligatoire       | true   |
| Valeur par défaut |        |
| Type              | Chaîne |

#### GroupID\_License

Identifiant d’objet du groupe d’attribution de licences.

| Propriété         | Valeur |
| ----------------- | ------ |
| Obligatoire       | true   |
| Valeur par défaut |        |
| Type              | Chaîne |

#### Supprimer

« Attribuer la licence à l’utilisateur » (valeur finale : $false) ou « Supprimer la licence de l’utilisateur » (valeur finale : $true) peuvent être sélectionnés comme action à effectuer.

| Propriété         | Valeur  |
| ----------------- | ------- |
| Obligatoire       | false   |
| Valeur par défaut | False   |
| Type              | Booléen |

[Retour à l’aperçu de la référence du runbook](/fr/automatisation/runbooks/runbook-references.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.realmjoin.com/fr/automatisation/runbooks/runbook-references/user/general/assign-or-unassign-license.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.
