# Agregar o quitar usuario

### Descripción

Este runbook agrega un usuario a un grupo o elimina un usuario de un grupo. Es compatible con grupos de Microsoft Entra ID y grupos de seguridad de Exchange Online habilitados para distribución o correo. Use el interruptor Remove para eliminar al usuario en lugar de agregarlo.

### Ubicación

Grupo → General → Agregar o quitar usuario

**Nombre completo del runbook**

rjgit-group\_general\_add-or-remove-user

### Permisos

#### Permisos de aplicación

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

### Parámetros

#### GroupID

ID de objeto del grupo de destino.

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

#### Id de usuario

Id de objeto del usuario que se va a agregar o quitar.

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

#### Quitar

Se puede seleccionar "Agregar usuario al grupo" (valor final: $false) o "Quitar usuario del grupo" (valor final: $true) como acción a realizar. Si se establece en true, el runbook quitará al usuario del grupo. Si se establece en false, agregará al usuario al grupo.

| Propiedad            | Valor   |
| -------------------- | ------- |
| Requerido            | false   |
| Valor predeterminado | False   |
| Tipo                 | Boolean |

[Volver a la vista general de referencia del runbook](/es/automatizacion/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/es/automatizacion/runbooks/runbook-references/group/general/add-or-remove-user.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.
