Trying to set up Azure for SMTP email. SMTP Username generation tells me that there is a Permissions issue

Duane Sellers 0 Reputation points
2025-11-11T20:05:08.0766667+00:00

Trying to set up Azure for SMTP email. SMTP Username generation tells me that there is a Permissions issue. I THINK I have set up all of the pieces correctly, and the Entra App Resource has the proper Graph permissions.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2025-11-11T20:05:28.8+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    It sounds like you may need to check the permissions assigned to your Microsoft Entra application. Ensure that the application has been assigned the appropriate role to access the Azure Communication Service resource. You can assign either a built-in role, such as the Communication and Email Service Owner role, or create a custom role with the necessary permissions, including Microsoft.Communication/CommunicationServices/Read, Microsoft.Communication/CommunicationServices/Write, and Microsoft.Communication/EmailServices/write.

    Here are the steps to assign a built-in role:

    1. Navigate to the Azure Communication Service Resource in the Azure portal.
    2. Open Access control (IAM).
    3. Click +Add and then select Add role assignment.
    4. Choose the Communication and Email Service Owner role and select your Microsoft Entra application as a member.
    5. Confirm the assignment.

    Make sure that the application has the necessary API permissions as well, specifically for sending emails, which includes permissions like Mail.Send.

    If you have already set these up and are still facing issues, double-check the permissions and roles assigned to ensure everything is configured correctly.


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.