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,079 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,369 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 6,965 Reputation points Microsoft Vendor
    2024-11-11T02:57:17.5633333+00:00

    Hello Some Guy,

    Thank you for reaching out to Microsoft Support!

    Currently the Graph API does not provide a clear identifier to distinguish between internal and external aliases, and the proxyAddress parameter can only be used to distinguish between primary and secondary proxy addresses, so we suggest that you can submit a feature request idea using this support link, which will be monitored by Microsoft team and make the enhancements to Microsoft Graph APIs.

    User's image

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    0 comments No comments

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.