# Connect Office 365 mailbox

### Prerequisites

* Tenant permissions in mluvii
* An existing [shared email account](https://portal.office.com/AdminPortal/Home?#/SharedMailbox)
* An existing user with access to the given mailbox. This user has all rights to the mailbox (it is used to log in to the mailbox via OAuth)

{% hint style="danger" %}
***The user has to have access at least to "IMAP" and "Authenticated SMTP" options. In order to check it, click on the "Manage email apps" item in the particular user account detail.***
{% endhint %}

<figure><img src="/files/hS2OtaiTiv1E0QDerIBD" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
*Don't forget to enable the ability to send emails as another user ("SendAs") for the user account used for MS Identity purposes!*
{% endhint %}

### Settings in mluvii

As a tenant (and higher) administrator, go to tenant settings (Settings -> Applications -> Microsoft identity) and click the ***Add*** button.

When you create a new identity, you will be redirected to a Microsoft page where you need to log into Microsoft Azure (**use the user account with full mailbox permissions**) and agree to the settings that mluvii requires to properly receive and send an email.

<figure><img src="/files/8REPTIjDIzhruoBQscje" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/kaQ3o1DZYSiz4m0StPqw" alt=""><figcaption></figcaption></figure>

### Connecting a mailbox established identity

When connecting email in mluvii, select *Office 365* to see a list of available Microsoft Identities.

<figure><img src="/files/ZsULYqosHNUi5uGDt8Wi" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mluvii.com/en/for-it-specialists/connect-office-365-mailbox.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
