Building an app to send email using Microsoft Graph API through which different user of different company domain can send email

Subhasis Ghosh 0 Reputation points
2024-09-30T11:39:55.57+00:00

I am building an application using C# that will send emails using Microsoft Graph API, and I want to enable users from different email domains to send emails. I have registered my application through Azure App registration under multi-tenant option and delegated permission for Microsoft Graph API User.Read and Mail.Send. When someone from another domain tries to send an email using this application, they are prompted to request approval for an access token. I have a few questions:

What happens when the user presses request for approval? Does it trigger an email to the xyz company Azure admin for approval?

Does the xyz Azure admin need to approve the request for the requested user from their Azure AD admin page?

Is Azure Admin access absolutely necessary for this?

What is the best way to handle this scenario? What settings or coding do I need so that different users from different companies (i.e., different domains like xyz.co.in) can send email using my application (registered in Azure AD by my organization azureAdmin@mycompany.co.uk)?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,019 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,925 questions
{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.