Skip to content

Connect Microsoft 365

This guide walks a Microsoft 365 Global Administrator through connecting Helios via the Microsoft Graph API.

Helios connects to Microsoft 365 with two permission types:

  • Delegated permissions — used during the interactive admin sign-in for mailbox protection (read/move mail).
  • Application permissions — used by the background SaaS Security scanner (Teams, SharePoint, governance) that runs without a signed-in user.
  1. Go to portal.azure.comMicrosoft Entra IDApp registrationsNew registration.

  2. Name: Himaya Helios.

  3. Supported account types: Accounts in any organizational directory (multi-tenant).

  4. Redirect URI: platform Web, value:

    https://app.himaya.ai/api/onboarding/callback/m365
  5. Click Register, then copy the Application (client) ID and Directory (tenant) ID.

  6. Go to Certificates & secrets → New client secret, copy the Value immediately (it’s shown only once).

Delegated permissions (mailbox protection)

Section titled “Delegated permissions (mailbox protection)”

Under API permissions → Add a permission → Microsoft Graph → Delegated permissions, add:

PermissionPurpose
openid, email, profile, offline_accessSign-in + refresh tokens
User.Read, User.Read.AllAdmin profile + user directory
Mail.Read, Mail.ReadWriteRead mail; move to quarantine
MailboxSettings.ReadRead inbox rules (posture)
Group.Read.AllResolve group membership

Application permissions (SaaS Security scanner)

Section titled “Application permissions (SaaS Security scanner)”

Only needed if you use the SaaS Security / posture features. Under Application permissions, add:

PermissionPowers
User.Read.AllExternal / guest user enumeration
Group.Read.AllTeams membership
Sites.Read.AllSharePoint sites & files
Files.Read.AllFile content for DLP scanning
ChannelMessage.Read.AllTeams channel messages
Directory.Read.AllTenant directory
Policy.Read.AllConditional Access gap detection
AuditLog.Read.AllRisky / blocked sign-ins
AppCatalog.Read.AllTeams + tenant app catalog
TeamsAppInstallation.ReadForTeam.AllPer-team installed apps
InformationProtectionPolicy.Read.AllDLP / sensitivity labels
IdentityRiskyUser.Read.AllRisky users feed
IdentityRiskEvent.Read.AllRisk events
SecurityEvents.Read.AllSecurity alerts
  1. After adding all permissions, click Grant admin consent for <tenant>.
  2. Confirm every row shows a green Granted status.
  1. In Helios, go to Settings → Integrations and click Connect Microsoft 365.
  2. Sign in as the Global Administrator and approve consent.
  3. You’re redirected back; the integration shows Active and mailbox discovery begins.

If you operate your own Helios backend, set these environment variables from Part 1:

Terminal window
M365_CLIENT_ID=<Application (client) ID>
M365_CLIENT_SECRET=<Client secret value>
M365_TENANT_ID=common # or your specific tenant GUID
M365_REDIRECT_URI=https://app.himaya.ai/api/onboarding/callback/m365

Deploy the Outlook Add-in

One-click phishing reporting — see Report Add-ons.

Set up policies

Configure automated actions in Policies.