# Atribuir ou anular atribuição de licença

### Descrição

Adiciona ou remove um utilizador de um grupo dedicado de atribuição de licenças para controlar a atribuição de licenças. O grupo de licenças deve corresponder à convenção de nomenclatura configurada.

### Localização

Utilizador → Geral → Atribuir ou remover atribuição de licença

**Nome completo do Runbook**

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

### Permissões

#### Permissões de aplicativo

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

### Parâmetros

#### UserName

Nome principal de utilizador do utilizador de destino.

| Propriedade  | Valor  |
| ------------ | ------ |
| Obrigatório  | true   |
| Valor padrão |        |
| Tipo         | String |

#### GroupID\_License

ID de objeto do grupo de atribuição de licenças.

| Propriedade  | Valor  |
| ------------ | ------ |
| Obrigatório  | true   |
| Valor padrão |        |
| Tipo         | String |

#### Remover

"Atribuir a licença ao utilizador" (valor final: $false) ou "Remover a licença do utilizador" (valor final: $true) pode ser selecionado como ação a executar.

| Propriedade  | Valor   |
| ------------ | ------- |
| Obrigatório  | false   |
| Valor padrão | False   |
| Tipo         | Boolean |

[Voltar para a visão geral da Referência de Runbook](/pt/automacao/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/pt/automacao/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.
