Intune Stuff | The Community place for Microsoft Intune, Intune Suite, Autopilot, macOS Management, Copilot for Security.

Microsoft Enpoint Privileged Management (EPM) – Achieve better notifications

by | Apr 28, 2025 | Application Management, Copilot, Endpoint Privilege Management, EPM, Featured Post, Intune, Manuals, Microsoft, Top Stories | 2 comments

Hi Community

Straight from the start i’ve been complaining on how Microsoft handles the notifications for EPM. This is done with toast notifications for the end user, with this type of notification al lot of stuff can happen that nobody is aware of the approval or deny of the request. For admins, the need to look to the intune portal to check is there is a request.

In this step by step guide i will describe how to get the notification in Teams by using Azure Logic apps. The reason i’m writing this blog is because i’ve found a lot of info scattered on the internet on this and i wanted to bundle this into 1 easy to follow blogpost.

Also check out these guides below for more detaild info:

Get notified of new Microsoft EPM elevation requests | Peter Klapwijk – In The Cloud 24-7 (inthecloud247.com)

Get an EPM elevation request notification! – Just about the Modern Workplace (joostgelijsteen.com)

 

I will be using Jose Schenardie’s template to configure this. With this template you will have this setup done in minutes.

Prequisites

  • Intune Suite license or EPM Addon
  • Admin Access to the Azure portal
  • Azure subscription
  • Teams (Admin) Access
  • EPM Configured (Check my previous post on how to configure this here)
  • Enough access to Slack / Teams to create and configure webhooks – allow the logic app to send notifications to your favorite IM tool

 

 

 

The Configuration

Run the Teams ARM Template

Go to the Azure Portal for the custom template or just the buttom below

EPM

You will be presented with this screen:

 

EPM

I will go over the things you need to fill in.

  • Subscription: Choose your Azure subscription for the deployment.
  • Resource Group: Choose or create a new resource group e.g: rg-EPMApprovalTeams.
  • Region: Choose your region, in my case West Europe.
  • Key Vault Name: Set a keyvault name e.g.: kv-EPMApprovalMessages.
  • Logic App Name: Set a Logic App name e.g.: la-EPMApprovalMessages.
  • Teams Webhook: We will get there just after this part, you will need to create this in teams and copy it here.
  • Location: Don’t change this.
  • Timezone: Fill in your time zone, this needs to be correct. You can find the correct naming here.
  • Recurrence: How often (in minutes) you want the logic app to run and send notifications on the chosen channel, I left it on the default 5mins.

 

Leave this screen open, we now are going to continue to the creation of the webhook we need.

 

Get the Webhook

I already have deployed this so for the sake of taking screenshots i will do this again but cancel the Teams Channel setup at the end. You will see my config in the background buyt just ignore this. 😉

In your teams client click the down arrow and select New channel.

 

EPM

 

Now pick a Team to add the channel to. Give it a name,  set a description if you want and choose the channel type and click create.

 

EPM

When the channel is created click on the more options button on the right of the channel and choose workflows.

 

EPM

 

In the workflows page we need to search for  Post to a channel when a webhook request is received, click on the search result.

 

EPM

 

On the next screen just click next.

 

 

In my case the Microsoft Teams Team and the Microsoft Teams Channel where filled in automatically. Click Add workflow.

 

 

 

Your workflow is now being created. Copy the url somewhere, this is what we need to fill in into the the custom Azure template in the Webhook section. After you copied it click done.

 

 

Now go back to the Azure portal to finish the custom template with the webhook. After you paste this click review and create.

 

Wait untill all is created and then we need to set permissions.

 

The permissions

Your logic app requires read access to specific Graph scopes to retrieve Intune EPM logs, this can be achieve by using powershell. I’ve already compiled a script for your convenience that you can download here.

The only thing you need to change is the $MI variable to your Logic app name.

 

EPM

Open this script in an editor of your choice as an admin and run it. you will need to login with admin credentials also.

 

for me this didn’t work from the 1st time, on Jose’s blog there was a snippet of the script however i needed to add the following to the script in order to get it working: Install-Module microsoft.graph.applications -AllowClobber -force This is embedded so no need for you to figure this out. I took me some time… 😉

 

 

The result

Now to test this all out, just browse to file, right click it and choose Run with elevated access. For this test i’m using PowerShell-7.4.6-win-x64.msi.

 

EPM

 

Give the business justification and click send.

 

 

The request will show up in the EPM pane in your Intune portal.

 

EPM

 

Check out the timestamp!

 

Now remember that we have set the 5 minutes runtime for the Logic app. Now go to your Teams channel and you will see that the message is there.

 

 

We can also check the Azure portal and we can see the of the runs where successful or not.

 

EPM

 

 

If your exe, msi, … does not have a publisher you will NOT get a notification. I don’t have a solution for this yet so if somebody has one feel free to share.

 

So when you see no publisher in your EPM requests, these requests did not trigger a Teams notification.

 

 

 

 

I hope this write up will get your EPM notifications in a beter way. Have fun with it.

And as always if you feel there is something in error or you want to add some stuff from your own experience don’t hesitate to contact me!

SHARE THIS:

2 Comments

  1. Graeme

    How much does the logic app cost to run or can you provide some figures to put into the cost estimator tool?
    Microsoft’s cost calculator given it’s like licensing is clear as mud
    We’d probably have maybe 10-15 EPM requests per day once it’s rolled out and we’d host the app either in Aus East or Aus Southeast

    Reply
    • joery

      I just checked for you. For my testing i approved like 20 requests and i’m just over 1,3euros

      Reply

Trackbacks/Pingbacks

  1. Multi-admin Approval: Unlocking the Miracle of Intune - […] That there are no notifications is maybe a miss for some admins, for me personally i don’t think that…

Submit a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from IntuneStuff

Subscribe now to keep reading and get access to the full archive.

Continue reading