> 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/org/mail/add-or-remove-tenant-allow-block-list.md).

# Agregar o quitar lista de permitidos/bloqueados de Tenant

Agregar o quitar una entrada de la lista de permitidos/bloqueados de Tenant

### Descripción

Añade un remitente, una URL o un hash de archivo a la Tenant Allow/Block List de Defender for Office 365, o lo vuelve a eliminar. Las nuevas entradas caducan después del número de días elegido, por lo que las excepciones temporales se eliminan automáticamente.

### Ubicación

Organización → Correo → Agregar o quitar Tenant Allow Block List

**Nombre completo del runbook**

rjgit-org\_mail\_add-or-remove-tenant-allow-block-list

### Detalles

| Propiedad          | Valor                                                                             |
| ------------------ | --------------------------------------------------------------------------------- |
| Versión            | 1.0.1                                                                             |
| Módulos requeridos | <p>RealmJoin.RunbookHelper (>= 0.8.10)<br>ExchangeOnlineManagement (>= 3.9.2)</p> |
| Programable        | no                                                                                |

### Permisos

#### Permisos de aplicación

* **Tipo**: Office 365 Exchange Online
  * Exchange.ManageAsApp
    * *Ejecuta Get/New/Remove-TenantAllowBlockListItems en la sesión de Exchange Online solo para aplicaciones*

#### roles RBAC

* Administrador de Exchange
  * *Necesario para que la sesión de Exchange Online solo para aplicaciones administre entradas de la Defender Tenant Allow/Block List*

### Parámetros

#### Entrada

Qué permitir o bloquear: un dominio, una dirección de correo electrónico, una URL o un hash de archivo, que coincida con el tipo de entrada.

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

#### Tipo de lista

Remitente toma un dominio o una dirección de correo electrónico, URL una dirección web, File hash un hash SHA-256.

| Propiedad            | Valor     |
| -------------------- | --------- |
| Obligatorio          | falso     |
| Valor predeterminado | Remitente |
| Tipo                 | Cadena    |

#### Bloqueo

La lista de bloqueo rechaza el correo, las URL o los archivos que coincidan; la lista de permitidos los deja pasar incluso cuando Defender los filtraría.

| Propiedad            | Valor     |
| -------------------- | --------- |
| Obligatorio          | falso     |
| Valor predeterminado | Verdadero |
| Tipo                 | Booleano  |

#### Quitar

Agregar la entrada la crea con la caducidad elegida; quitar la entrada elimina la entrada existente con el mismo valor.

| Propiedad            | Valor    |
| -------------------- | -------- |
| Obligatorio          | falso    |
| Valor predeterminado | Falso    |
| Tipo                 | Booleano |

#### Días hasta expirar

Días hasta que una nueva entrada caduque y se elimine automáticamente.

| Propiedad            | Valor |
| -------------------- | ----- |
| Obligatorio          | falso |
| Valor predeterminado | 30    |
| Tipo                 | Int32 |

[Volver al resumen de referencia de Runbook](https://docs.realmjoin.com/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/org/mail/add-or-remove-tenant-allow-block-list.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.
