Email aliases: How to differentiate between an internal alias and an external one?

Some Guy 0 Reputation points
2024-11-08T19:08:29.03+00:00

So an Outlook account allows for aliases. It allows for both internal aliases that don't exist outside of the account and simply route straight to the same inbox and for external email accounts to be used as login usernames and to send as.

The thing is that I cannot find any way to differentiate between the two, at least not definitively. This has to be doable on both business and MSA accounts. I can get all of the emails either by $select=proxyAddresses on /me call for business accounts or (since it's the ONLY way to do it) by using the beta /me/profile call to get them for MSA accounts. Neither one gives me enough information to reliably tell which is an internal alias and which is an external. Sure, there are cases where it can be determined, like extra outlook.com addresses on an MSA account, but not always, and this may not hold true for various older grandfathered configurations, either. Even an MSA account can have a custom domain through O365, so going by domain alone can't provide that information. Even MX records may not be reliable since they can be edited.

Does anyone have an answer to this issue? What I'd give for Microsoft to simply add a flag to each email address in the API results identifying the type...

Outlook
Outlook
A family of Microsoft email and calendar products.
4,011 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,271 questions
0 comments No comments
{count} votes

Your answer

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