> For the complete documentation index, see [llms.txt](https://docs.realmjoin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmjoin.com/es/automatizacion/runbooks/runbook-references/user/general/assign-or-unassign-license.md).

# Asignar o desasignar licencia

Asignar o quitar una licencia para este usuario mediante un grupo de licencias

### Descripción

Agrega a este usuario a un grupo de asignación de licencias o lo elimina de él, lo que asigna o quita la licencia que lleva el grupo.

### Ubicación

Usuario → General → Asignar o desasignar licencia

**Nombre completo del runbook**

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

### Detalles

| Propiedad          | Valor                               |
| ------------------ | ----------------------------------- |
| Versión            | 1.0.1                               |
| Módulos requeridos | RealmJoin.RunbookHelper (>= 0.8.10) |
| Programable        | no                                  |

### Permisos

#### Permisos de aplicación

* **Tipo**: Microsoft Graph
  * User.Read.All
    * *Resuelve el id de objeto del usuario de destino mediante UPN*
  * GroupMember.ReadWrite.All
    * *Comprueba la pertenencia y agrega o quita al usuario en el grupo de licencias*
  * Group.ReadWrite.All
    * *Lee el objeto del grupo para validar el prefijo de nomenclatura LIC\_*

### Parámetros

#### Nombre de usuario

Nombre principal de usuario del usuario sobre el que actúa el runbook. Lo establece el portal a partir del usuario seleccionado.

| Propiedad            | Valor                                                       |
| -------------------- | ----------------------------------------------------------- |
| Requerido            | verdadero                                                   |
| Valor predeterminado |                                                             |
| Tipo                 | Cadena                                                      |
| Oculto en el portal  | sí (preconfigurado mediante la personalización del runbook) |

#### GroupID\_License

Grupo que lleva la licencia. Solo se ofrecen los grupos cuyo nombre empieza por LIC\_.

| Propiedad            | Valor     |
| -------------------- | --------- |
| Requerido            | verdadero |
| Valor predeterminado |           |
| Tipo                 | Cadena    |

#### Quitar

Assign añade al usuario al grupo. Remove lo saca de él.

| Propiedad                      | Valor    |
| ------------------------------ | -------- |
| Requerido                      | falso    |
| Valor predeterminado           | Falso    |
| Tipo                           | Booleano |
| Nombre para mostrar del portal | Acción   |

**Opciones del portal**

| Opción del portal           | Valor     |
| --------------------------- | --------- |
| Asignar licencia al usuario | falso     |
| Quitar licencia del usuario | verdadero |

[Volver a la vista general de referencia del runbook](/es/automatizacion/runbooks/runbook-references.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.realmjoin.com/es/automatizacion/runbooks/runbook-references/user/general/assign-or-unassign-license.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.
