> 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/fr/automatisation/runbooks/runbook-references/org/general/add-or-remove-safelinks-exclusion.md).

# Ajouter ou supprimer une exclusion Safe Links

Autoriser un modèle d'URL dans une stratégie Safe Links ou le supprimer

### Description

Ajoute un modèle d’URL aux exclusions d’une stratégie Microsoft Defender Safe Links afin que les liens correspondants ne soient plus réécrits, ou supprime une telle exclusion. Peut également répertorier les stratégies existantes avec leurs paramètres, et créer une stratégie avec son groupe d’attribution lorsque celui demandé n’existe pas.

### Emplacement

Organisation → Général → Ajouter ou supprimer une exclusion Safe Links

**Nom complet du runbook**

rjgit-org\_general\_add-or-remove-safeLinks-exclusion

### Détails

| Propriété      | Valeur                                                                            |
| -------------- | --------------------------------------------------------------------------------- |
| Version        | 1.0.2                                                                             |
| Modules requis | <p>ExchangeOnlineManagement (>= 3.9.2)<br>RealmJoin.RunbookHelper (>= 0.8.10)</p> |
| Planifiable    | non                                                                               |

### Autorisations

#### Autorisations d’application

* **Type**: Office 365 Exchange Online
  * Exchange.ManageAsApp
    * *Gère les stratégies Safe Links, les règles et le groupe d’attribution dans la session Exchange Online réservée à l’application*

#### rôles RBAC

* Administrateur Exchange
  * *Requis pour la session Exchange Online réservée à l’application lors de la mise à jour de DoNotRewriteUrls*

### Paramètres

#### Action

Add met le modèle sur la liste d’exclusion, Remove le retire, List affiche les stratégies et leurs paramètres.

| Propriété                  | Valeur |
| -------------------------- | ------ |
| Obligatoire                | faux   |
| Valeur par défaut          | 2      |
| Type                       | Int32  |
| Nom d’affichage du portail | Action |

**Options du portail**

| Option du portail                                             | Valeur |
| ------------------------------------------------------------- | ------ |
| Ajouter un modèle d’URL à la stratégie                        | 0      |
| Supprimer un modèle d’URL de la stratégie                     | 1      |
| Lister toutes les stratégies et tous les paramètres existants | 2      |

#### LinkPattern

Modèle à exclure ; \* fonctionne comme un caractère générique pour l’hôte et le chemin, par exemple https\://*.microsoft.com/*.

| Propriété         | Valeur                     |
| ----------------- | -------------------------- |
| Obligatoire       | faux                       |
| Valeur par défaut | https\://*.microsoft.com/* |
| Type              | Chaîne                     |

#### Nom de la stratégie par défaut

Stratégie utilisée lorsqu’aucun nom de stratégie n’est indiqué.

| Propriété              | Valeur                                             |
| ---------------------- | -------------------------------------------------- |
| Obligatoire            | vrai                                               |
| Valeur par défaut      | Stratégie Safe Links par défaut                    |
| Type                   | Chaîne                                             |
| Masqué dans le portail | oui (prédéfini via la personnalisation du runbook) |

#### PolicyName

Stratégie à modifier. Laisser vide pour utiliser la stratégie par défaut.

| Propriété         | Valeur |
| ----------------- | ------ |
| Obligatoire       | faux   |
| Valeur par défaut |        |
| Type              | Chaîne |

#### CreateNewPolicyIfNeeded

Crée la stratégie Safe Links et son groupe d’attribution lorsqu’elle n’existe pas encore.

| Propriété         | Valeur  |
| ----------------- | ------- |
| Obligatoire       | faux    |
| Valeur par défaut | Vrai    |
| Type              | Booléen |

[Retour à l’aperçu de la référence du runbook](/fr/automatisation/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/fr/automatisation/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.
