> For the complete documentation index, see [llms.txt](https://docs.meta-inf.hu/email-this-issue/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.meta-inf.hu/email-this-issue/administration/mail-server-connections/microsoft-with-oauth2/microsoft-graph-api-with-oauth2.md).

# Microsoft Graph API with OAuth2

We provide two options for Graph API connections.

**Delegated access (**[**Setup instructions for Delegated Access**](https://docs.meta-inf.hu/email-this-issue/~/revisions/mYKQuRriMlSJeyH2TzSD/administration/mail-server-connections/microsoft-with-oauth2/microsoft-graph-api-with-oauth2/graph-api-with-auth-code-delegated-access)**)**

* A user is signed in.
* The app reads, writes, or sends **as that user**.
* The app can only do what the user is allowed to do.

**Application access (**[**Setup instructions for Application Access**](/email-this-issue/administration/mail-server-connections/microsoft-with-oauth2/microsoft-graph-api-with-oauth2/graph-api-with-client-credentials-grant-application-access.md)**)**

* No user is signed in.
* The app reads, writes, or sends **from a mailbox on its own**.
* Requires admin consent because it can access mail without a user.
