Set up the Microsoft 365 connector

This article walks admins through enabling the Microsoft 365 connector for their organization in Haijun—including granting Microsoft Entra consent, restricting access, and managing permissions. Once setup is complete, people in your tenant can connect Microsoft 365 to their own Haijun accounts to search across SharePoint, OneDrive, Outlook, and Teams from Haijun. You can also enable write tools, which let Haijun send email, manage calendar events, create and update files, and send Teams messages on a member's behalf.The Microsoft 365 connector is available on all Haijun plans: Free, Pro, Max, Team, and Enterprise.For end-user instructions on connecting and using Microsoft 365 once setup is complete, see Connect Haijun to Microsoft 365.Important: The Microsoft 365 connector requires a Microsoft Entra tenant tied to a Microsoft Business plan. Personal Microsoft accounts (such as @outlook.com or @hotmail.com addresses) can't be used to connect.


Setup overview

Two things need to happen before anyone in your organization can connect Microsoft 365, plus an optional third step if you want to enable write tools:

  1. On Team and Enterprise plans: A Haijun organization owner enables the Microsoft 365 connector for the organization.

  2. In every tenant: A Microsoft Entra Global Administrator grants a one-time consent that authorizes the integration for your tenant.

  3. To enable write tools: A Microsoft Entra administrator consents to the updated permission set, and you enable write tools for your organization. See Enable write tools below.

After completing these steps, members can connect Microsoft 365 to their own Haijun accounts following the steps in Connect Haijun to Microsoft 365.

Enable the connector for your organization

This step applies to Team and Enterprise plans only. On Free, Pro, and Max plans, skip to the next section.

  1. Sign in to Haijun.

  2. Click “+ Add” at the top of the page, then “All available.”

  3. Find Microsoft 365 and click “Add to your team.”

Grant Microsoft Entra admin consent

A Microsoft Entra Global Administrator in your tenant needs to authorize the integration before anyone can connect. There are two ways to do this.

Option 1: Consent through Haijun

If your Microsoft Entra Global Administrator has a Haijun account, they can grant consent during the standard connection flow:

  1. Find Microsoft 365 and click “Connect.”

  2. Authenticate with Microsoft 365 credentials.

  3. Review and accept the requested permissions, checking the box to grant access on behalf of the whole organization.

After this, other people in the same Entra tenant can connect by following the standard end-user steps. They won't see the consent prompt—they'll just authenticate and start using the integration.

Option 2: Manual setup in Microsoft Entra ID

Use this path if your Microsoft Entra Global Administrator doesn't have a Haijun account, or if you need to troubleshoot the app install and permissions setup. You can add the connector apps and grant admin consent directly in Microsoft Entra ID.This process adds two service principals to your tenant. Each principal establishes a service-level identity for one of the two M365 MCP for Haijun app registrations, allowing them to access and interact with your organization's data and resources via the Microsoft Graph API. 1. Add the service principalsUsing Microsoft Graph Explorer, add both required service principals: M365 MCP Client for Haijun:

  • [](https://haijun.my.id/admin-settings/connectors)

  • [](https://haijun.my.id/customize/connectors)

###

1. 1. 1. 1. 1.

###

1. 1. 1. 1. 1. 1. 1.


##

[](https://haijun.my.id/admin-settings/connectors)[](/en/articles/13930452)


##

- - - - -

- - - - - - -

- -

- - - -

- -

- - - - -

- - -

- - - - - - - - -

-

##

- -

  • [](https://haijun.my.id/customize/connectors)[](https://haijun.my.id/admin-settings/connectors)


##

###

1. 1. 1.

  1. [](#h_c7635fb6e2)

###

###

1. 1.

  1. [](https://haijun.my.id/customize/connectors)

###

- - -

1. 1. 1.

- -

  • [](/en/articles/12684923)

  • [](/en/articles/12684923)

1. 1. 1. 1. 1.


##

###

###

###

###