> 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/general/add-or-remove-safelinks-exclusion.md).

# Agregar o quitar exclusión de Safe Links

Permitir un patrón de URL en una directiva de Safe Links o quitarlo

### Descripción

Agrega un patrón de URL a las exclusiones de una directiva Safe Links de Microsoft Defender, de modo que los enlaces que coincidan con él ya no se reescriban, o elimina dicha exclusión. También puede enumerar las directivas existentes con sus configuraciones y crear una directiva con su grupo de asignación cuando no exista la solicitada.

### Ubicación

Organización → General → Agregar o quitar exclusión de SafeLinks

**Nombre completo del runbook**

rjgit-org\_general\_agregar-o-quitar-exclusion-de-safeLinks

### Detalles

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

### Permisos

#### Permisos de aplicación

* **Tipo**: Office 365 Exchange Online
  * Exchange.ManageAsApp
    * *Administra las directivas de Safe Links, las reglas y el grupo de asignación en la sesión de Exchange Online solo para la aplicación*

#### roles de RBAC

* Administrador de Exchange
  * *Necesario para la sesión de Exchange Online solo para la aplicación al actualizar DoNotRewriteUrls*

### Parámetros

#### Acción

Agregar coloca el patrón en la lista de exclusiones; Quitar lo elimina; Listar muestra las directivas y sus configuraciones.

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

**Opciones del portal**

| Opción del portal                                        | Valor |
| -------------------------------------------------------- | ----- |
| Agregar patrón de URL a la directiva                     | 0     |
| Quitar patrón de URL de la directiva                     | 1     |
| Listar todas las directivas y configuraciones existentes | 2     |

#### LinkPattern

Patrón a excluir; \* funciona como comodín para el host y la ruta; por ejemplo https\://*.microsoft.com/*.

| Propiedad            | Valor                      |
| -------------------- | -------------------------- |
| Requerido            | falso                      |
| Valor predeterminado | https\://*.microsoft.com/* |
| Tipo                 | Cadena                     |

#### DefaultPolicyName

Directiva usada cuando no se proporciona un nombre de directiva.

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

#### PolicyName

Directiva que se va a cambiar. Déjelo vacío para usar la directiva predeterminada.

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

#### CreateNewPolicyIfNeeded

Crea la directiva Safe Links y su grupo de asignación cuando aún no existen.

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

[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/org/general/add-or-remove-safelinks-exclusion.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.
