Forum Discussion
How do I send Azure APIM product subscription approval to different email adresses
I am trying to identify if we have a Azure APIM instance shared between different teams then how can I send approval emails to different email addresses for different APIs/Products. I need to send approval emails for each product to the respective team's approver.
How can this be achieved because by default APIM instance will send the approval to the APIM administrator's email address.
3 Replies
Hi, for APIM product subscription approvals the built-in approval notification is fairly instance/admin oriented, so I would not rely on that alone if each product needs a different approver. A practical approach is to capture subscription requests through APIM events or the management API and then route the approval workflow yourself with Logic Apps, Power Automate, or an Azure Function based on product ID. That gives you much better control over which team receives which request, and you can still call the APIM management API afterward to approve or reject the subscription.
By default, Azure API Management (APIM) directs product subscription approval requests to the designated APIM service administrators. The platform does not provide native functionality to route approval notifications to different recipients on a per‑product basis. To enable team‑specific approvals, organizations must implement a custom workflow that captures subscription requests and programmatically forwards them to the appropriate approver.
https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions
https://github.com/adamhockemeyer/Azure-API-Management-Custom-Subscription-Approval
- curious7Brass Contributor
Thanks a lot for those links. I had found the following link earlier and have been trying to get the logic app working:-
https://github.com/adamhockemeyer/Azure-API-Management-Custom-Subscription-Approval
But my logic app starts failing at step 2.5.2 where the procedure asks to create Office 365 'Send Approval Email' step. It does not send the email. I have connected that to a user account in my tenant which has full E5 license.But the step gives an error and never sends the email. What can I check?