Protection status

Microsoft 365 administrator handoff

Connect ZANMIVO to Microsoft Defender

Requested access: read-only security alerts from your organization's Microsoft Defender environment.

Before granting access

Confirm the organization has Defender for Office 365 licensed and configured, and that its alerts appear at security.microsoft.com. Defender for Business alone is not evidence of an email protection license. ZANMIVO displays detections; Microsoft manages filtering and quarantine.

Application access can read security alerts across the organization, including sensitive subjects, senders, recipients and evidence. ZANMIVO administrators can view returned alerts. It does not grant mailbox editing, device isolation or policy changes. Approve this scope only for the organization you administer.

Administrator checklist

  1. Register the application.

    Open Microsoft Entra → App registrations → New registration. Name it ZANMIVO Defender, choose Accounts in this organizational directory only, leave Redirect URI blank, and select Register. This setup uses application credentials, not a personal Microsoft sign-in.

  2. Review the minimum permission.

    Open API permissions → Add a permission → Microsoft Graph → Application permissions. Select SecurityAlert.Read.All only. Do not select SecurityAlert.ReadWrite.All, Mail.Read or Directory.Read.All for this email-alert screen.

  3. Grant consent in Microsoft.

    After your organization approves the scope above, an administrator authorized to grant Microsoft Graph application permissions selects Grant admin consent for your organization. Check that SecurityAlert.Read.All is marked Granted. This page itself cannot grant access.

  4. Create and store the application secret securely.

    Open Certificates & secrets → New client secret. Choose an expiry under your organization's policy. Enter its Value, along with the Directory (tenant) ID and Application (client) ID, only in Lovable's secure Azure Graph & Entra connection settings. Never email them, put them in tickets, paste them on this page or send them in chat. A Microsoft account password is never required.

  5. Link and verify the connection.

    The ZANMIVO project owner completes the secure Microsoft connection in Lovable. Then open the private Microsoft setup page and select Check Defender access. A successful check proves alert access, not that every device or mailbox is protected. If Microsoft returns no alerts, no sample detections are added.

Expiry, revocation and troubleshooting

Record the secret expiry privately. Rotate it before expiry, update the secure connection, verify access and then revoke the old secret. To stop access, revoke application consent or disable the application in Microsoft; removing the Lovable connection does not remove Microsoft resources. Access stops when Microsoft stops accepting credentials or existing tokens expire.

For permission errors, check the application permission, admin consent and Defender workload licensing. For an empty result, compare with Defender's alert history and retention; empty results do not prove the organization is threat-free. Do not generate a phishing message just to populate this screen.

Administrator portal access

Use Continue with Microsoft to sign in with your own Microsoft account. Access to flagged emails still requires a separately assigned ZANMIVO administrator role. Microsoft sign-in does not grant Defender consent or automatically make you an administrator.

Microsoft administrator sign-in