How to integrate to external users outlook emails

Pro 20 Reputation points
2024-07-06T22:27:40.77+00:00

I'm building a SaaS that connects to customer's work/personal emails and listens to incoming email in the background (so they don't have to stay logged in) and runs an AI task on the email to give some data insights.

Some of the customers use Outlook as their email provider. How do I connect to a customer's Mailbox via Microsoft Graph? (NB: customers do not live in our tenant)

I've tried the Delegated User flow, but this doesn't work well for me as the key is short lived (1 hour) and I need to be able to access their emails even when they're not on the platform.

I've also tried the Application Only flow, but I keep getting a 401 status code when trying to access the email of someone outside my tenant/organisation (even if they're a guest).

Is there any plausible way to achieve this in Microsoft Graph? I know with Gmail it's pretty straight forward with their API.

Outlook | Windows | Classic Outlook for Windows | For business
Microsoft Security | Microsoft Graph
0 comments No comments

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    6 deleted comments

    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.