How to create an App registration in Azure AD for sending emails through API

Zhiyu Yang 0 Reputation points
2024-05-29T13:36:23.7766667+00:00

I need to create an API that our vendor can use to send emails with a specific account. How can I create this application in the Azure AD portal? Which API permissions do I need to grant? Additionally, I cannot find an application designed specifically for a specific account.

Azure Managed Applications
Azure Managed Applications
An Azure service that enables managed service providers, independent software vendors, and enterprise IT teams to deliver turnkey solutions through the Azure Marketplace or service catalog.
148 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,161 questions
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 25,481 Reputation points Microsoft Employee
    2024-05-31T20:33:07.4933333+00:00

    Hi @Zhiyu Yang , if I'm understanding your question correctly this is the best guide to get you started. It details how to register and configure an application to expose an API. For the permissions, you would need Mail.Send. More detailed information on permissions can be found here.

    To use this app registration to send emails through API, your vendor will need to authenticate with Azure AD and obtain an access token with the Mail.Send permission. They can then use this access token to call the Microsoft Graph API to send emails on behalf of the account associated with the app registration.

    Note that there is no application designed specifically for a specific account. Instead, you can create an app registration and grant it the necessary permissions to send emails on behalf of the account.

    Please let me know if you have any questions and I can help you further.

    If this answer helps you please mark "Accept Answer" so other users can reference it.

    Thank you,

    James

    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.