Team: Huntress Email Security (ES)
Environment: Microsoft 365, Google Workspace
Summary: Learn how to set up a new Email Security tenant and connect a message source to start analyzing emails.
In this Article
Configure a Mailbox
Tips & Notes
Troubleshooting
Configure a Mailbox
Log in to Huntress and go to the ES > Dashboard page.
Click Configure a Mailbox.
From the drop-down menu, select the appropriate organization and click Continue.
Select your provider, such as Microsoft or Google, and click Continue.
Copy the OAuth link, open it in a new browser tab or window, and follow the steps to sign in as a Global Admin (Microsoft 365) or Super Admin (Google Workspace).
Once complete, return to the Huntress portal and click I've Authorized - Continue.
If successful, the dialog will close, and your data will begin processing. It usually takes about 12 hours (up to 2 days) to see historic email review, depending on tenant size.
Tips & Notes
- Ensure you have the appropriate administrator privileges in your Microsoft or Google environment before starting the OAuth process.
- The platform periodically refreshes the connection status, so it may take a few minutes for the setup to fully reflect in your dashboard.
Troubleshooting
Authorization Error (Microsoft 365)
Symptoms
After you sign in with the OAuth link, you see a generic authorization error instead of a Microsoft permissions screen.
You're not prompted for MFA before the error appears.
No new enterprise application appears in the tenant's Entra admin center afterward.
(Likely) Cause
A Conditional Access policy in the tenant is most likely blocking the sign-in, typically one that requires a managed device (Entra-joined, hybrid-joined, or compliant). Microsoft blocks the request before consent is granted, so the application is never added to the tenant.
Confirm the cause in the Entra sign-in logs:
In the Microsoft Entra admin center, go to Monitoring & health > Sign-in logs.
Filter by the admin account you used and the time of the failed attempt.
Open the failed entry. Error code
50097("Device authentication is required") points to a device-based Conditional Access requirement.Select the Conditional Access tab to see which policy applied and which grant control failed.
Select the Device info tab. A blank device ID means the browser didn't pass device identity. A populated device ID that's not compliant or joined points to the device's state or the policy's scope.
Resolution
Open the OAuth link in a private/incognito browser window so an existing session doesn't hide prompts.
Sign in from a device that's joined to or compliant in the customer's tenant, or have an admin complete the authorization from a managed device. The link can be shared with any Global Administrator of the target tenant.
If no managed device is available, review the tenant's Conditional Access policies with your security team. You may be able to temporarily exclude the authorizing admin account from the blocking policy, complete the authorization, and then remove the exclusion.
Getting Help
If the sign-in log shows a different error, or authorization still fails from a managed device, contact Huntress Support with:
The admin account used and the approximate time of the attempt (with time zone)
The Correlation ID from the failed sign-in entry
Screenshots of the error page and the sign-in entry's Basic info and Conditional Access tabs