Is there a way to create an email alias using Graph?

Marco 6 Reputation points
2022-08-18T06:29:30.76+00:00

I need to create email aliases on one single shared mailbox regularly.
I used to do that manually in the past but now I want to do this automated.

Is there a way to create mail aliases on this shared mailbox using Microsoft Graph?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,482 questions
{count} vote

3 answers

Sort by: Most helpful
  1. Sheena-MSFT 1,721 Reputation points
    2022-08-24T12:44:44.003+00:00

    Hi Macro-3735,

    Currently adding proxy address for a mailbox using Graph API is not supported. Please check user resource . You can see a proxyAddresses property available in beta but it is read only and can be updated only through M365 admin center.

    you can submit a feature request idea via this support link to suggest tweaks to the document content, which will be monitored by Microsoft team and make the enhancements to Microsoft Graph APIs. I will also upvote for you.

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

    1 person found this answer helpful.
    0 comments No comments

  2. Eric Neiner 51 Reputation points
    2023-03-20T00:24:46.02+00:00

    Funny thing is Bing Chat is telling me there is a way on the graph. Does it know something that is not released yet? I think it's making it up or knows that this is something on the new graph api.

    Per BingChat:

    It looks like you are trying to create an alias for your email address using the Microsoft Graph API. The endpoint you are using, https://graph.microsoft.com/v1.0/me/aliases, is correct. However, the body of your request is missing the emailAddress property.
    
    Here is an example of the correct request body to create an alias for your email address:
    
    {
        "emailAddress": "flounder@scaledsolutions.app"
    }
    You can also specify an optional displayName property to give the alias a name.
    
    I hope this helps! Let me know if you have any other questions.
    
    0 comments No comments

  3. Julien 0 Reputation points
    2023-11-16T11:08:52.7+00:00

    Hello,

    I have the same problem. I need to generate a email alias via API call. It is crucial for a usecase. Is there a workaround? Maybe an API endpoint which is invoking a PS script on the outlook server with some variables?