> For the complete documentation index, see [llms.txt](https://docs.stoik.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stoik.io/help/help-center-en-es/email-security/microsoft-365.md).

# Configuración: Microsoft 365

Conecta tu inquilino de Microsoft 365 para que Email Security pueda analizar tus buzones. Cada buzón obtiene las mismas funciones, independientemente de su licencia de Microsoft.

## Requisitos previos

* Un inquilino de Microsoft 365 **Administrador global** .

## Conecta tu tenant

{% stepper %}
{% step %}

### Inicia sesión en Microsoft

1. En Stoïk Protect, ve a `Email Security` > `Configuración`.
2. Seleccione `Microsoft 365` y haz clic en `Confirmar`.
3. Inicia sesión con tu cuenta de administrador global.
   {% endstep %}

{% step %}

### Acepta los permisos

Revisa y acepta los permisos solicitados. Consulta [Permisos requeridos](/help/help-center-en-es/email-security/microsoft-365/permissions.md) para saber para qué se usa cada uno.
{% endstep %}

{% step %}

### Sigue la configuración guiada

Stoïk Protect detecta tu tipo de licencia y muestra la ruta correcta:

* **No se requiere ninguna acción**: se te redirige a la página de resultados. La configuración ha finalizado.
* **Se requiere una acción mínima**: habilita la auditoría en Microsoft Purview. Consulta [Habilitar auditoría en Microsoft Purview](#enable-audit-in-microsoft-purview).
* **Se requiere una configuración completa**: configura primero el acceso a Purview y luego habilita la auditoría. Consulta [Configurar el acceso a Microsoft Purview](#configure-microsoft-purview-access).
  {% endstep %}
  {% endstepper %}

## Configurar el acceso a Microsoft Purview

Solo si Stoïk Protect lo solicita y el acceso a Purview aún no está configurado.

1. Vaya al [Portal de Azure](https://portal.azure.com/) e inicia sesión con una cuenta de administrador.
2. Abra el `Marketplace`.
3. Busca Microsoft Purview, selecciónalo y haz clic en `Crear`.

## Habilitar auditoría en Microsoft Purview

Solo si Stoïk Protect lo solicita.

1. Ve a [Microsoft Purview](https://purview.microsoft.com/) e inicia sesión con una cuenta de administrador.
2. Abre `Soluciones` > `auditoría`.
3. Haz clic en `Inicia la grabación de la actividad de usuarios y administradores`.

Si Purview muestra un error, consulta [Errores de activación de Purview](/help/help-center-en-es/email-security/microsoft-365/purview-errors.md).

## Después de la conexión

* Los buzones supervisados aparecen en `Email Security` > `Buzones`. Consulta [Estados de los buzones](/help/help-center-en-es/email-security/mailbox-statuses.md).
* Stoïk recupera los correos electrónicos de los últimos 90 días para todos los buzones supervisados, empezando por los más antiguos. Esto puede llevar algún tiempo.

Para conectar otro tenant (Microsoft 365 o Google Workspace), ve a `Email Security` > `Configuración`, haz clic en `Añadir un proveedor` y sigue los mismos pasos. Puedes conectar tantos tenants como necesites.

{% hint style="info" %}
Si la lista de usuarios no aparece más de 10 minutos después de la sincronización, contacta con <protect@stoik.io>.
{% endhint %}


---

# 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.stoik.io/help/help-center-en-es/email-security/microsoft-365.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.
