Is it possible to assign graph api mail send permission to a system assigned identity?

kanna 106 Reputation points
2022-02-16T12:01:57.387+00:00

I have a python function app and I would like to send mail using Graph api.
I was able to send mail locally using credentials from app service identity.

Can I grant permissions to functions system assigned identity? If so how can I do that?
If it is not possible how can I refer refer app service id and secret in code? What is equivalent of local settings in portal?

Cheers

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,401 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,890 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vicky Kumar (Mindtree Consulting PVT LTD) 1,156 Reputation points Microsoft Employee
    2022-02-17T08:06:53.32+00:00

    Hi kanna-2335,

    Could you please follow these 2 docs , managed-identity and managed-identities-azure-resources , hope this might help you . let me know if you need any other info

    0 comments No comments