> 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/group/mail/enable-or-disable-external-mail.md).

# Activer ou désactiver le courrier externe

Autoriser ou bloquer les expéditeurs externes pour ce groupe Microsoft 365

### Description

Contrôle si des personnes extérieures à l’organisation peuvent envoyer des e-mails à ce groupe Microsoft 365. Le paramètre actuel peut également être affiché sans le modifier.

### Notes d’implémentation

Le paramètre est modifié via Exchange Online (`RequireSenderAuthenticationEnabled`), et non via Microsoft Graph. L’écriture de la propriété correspondante `allowExternalSenders` du groupe via Microsoft Graph est un problème connu documenté (au 28/06/2021), voir [Définition de la propriété allowExternalSenders](https://docs.microsoft.com/en-us/graph/known-issues#setting-the-allowexternalsenders-property).

### Emplacement

Groupe → Courrier → Activer ou désactiver le courrier externe

**Nom complet du runbook**

rjgit-group\_mail\_enable-or-disable-external-mail

### Détails

| Propriété      | Valeur                                                                            |
| -------------- | --------------------------------------------------------------------------------- |
| Version        | 1.0.1                                                                             |
| 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
    * *Exécute Get-/Set-UnifiedGroup pour basculer RequireSenderAuthenticationEnabled dans la session d’application uniquement*

#### rôles RBAC

* Administrateur Exchange
  * *Requis pour la session Exchange Online d’application uniquement qui modifie le paramètre de courrier externe*

### Paramètres

#### GroupId

ID d’objet du groupe sur lequel le runbook agit. Défini par le portail à partir du groupe sélectionné.

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

#### Action

Autoriser permet aux expéditeurs externes d’envoyer des e-mails au groupe. Bloquer le limite aux expéditeurs internes. La requête affiche uniquement l’état actuel.

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

**Options du portail**

| Option du portail                   | Valeur |
| ----------------------------------- | ------ |
| Autoriser les expéditeurs externes  | 0      |
| Bloquer les expéditeurs externes    | 1      |
| Interroger l’état actuel uniquement | 2      |

[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/group/mail/enable-or-disable-external-mail.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.
