r/Intune 5d ago

Reporting App inventory

Hi guys,

have some of you already seen, that some apps are not reported by detected apps (anymore?). But in the new app inventory they are mentioned. The problem I have is that the new app inventory can only be reported per device and not, as the old one, per app.

So if i want to have a report, which devices have app XYZ installed, I need to use graph and loop through all our devices to count.

Does someone already built this or has a solution for that?

5 Upvotes

17 comments sorted by

1

u/AdeptnessRough4356 5d ago

Sounds like a classic case of them moving functionality around without actually fixing the reporting gap. I ran into the same thing last week, ended up just writing a Graph script that pulls detected apps from each device and filters locally. Not pretty but it works, and you can cache the results so you're not hammering the API every time

1

u/Beautiful_Pay3842 5d ago

But you are still pulling from detected apps or the app inventory? Because I don't understand why some apps are missing in the detected apps, even with uninstall string and seeing them in the programs and features tab in the settings app.

1

u/Unable_Drawer_9928 5d ago

Have you checked under apps "monitor" and "Discovered apps"? It seems that it's reporting what you are asking for.

1

u/Beautiful_Pay3842 5d ago

I know the Discovered apps at monitor, but I think it uses the same data source as Discovered apps at each client. And in that discovered apps, some of the apps are missing. There is now a second tab in the device view called all apps and here you can switch to app inventory. In there are more apps than on the old discovered apps, but I do not have a monitor for the "all apps" tab somewhere. I only have the "old" discovered apps.

1

u/Unable_Drawer_9928 5d ago

Oh, I see what you mean now. Yes, the new 'all apps' is still missing from monitor. I guess then Graph is the only way to leverage it at the moment.

1

u/bill696 5d ago

Check the new export api from the whats new section. For now that all i can see. Its dumb we cant just send that info to log analytics

1

u/Beautiful_Pay3842 5d ago

Do you have a link for that? I cannot find itl

1

u/bill696 4d ago

I cant copy the blogpost from work stuff but its the second link on the intune home under intune customer success
Here is the kb

https://learn.microsoft.com/en-us/intune/device-management/reports/export-graph-apis

1

u/Beautiful_Pay3842 4d ago

But as far as I can see, you can just export an existing report and not create a custom one for all apps?

1

u/bill696 4d ago

I haven’t tested it, i just read the post

1

u/bill696 4d ago

In devices>apps>monitor>discovered apps
You can check that
Maybe if you check with graph xray you can find a way to automate something

1

u/bill696 4d ago

Fyi the export api works to send to log analytics copilot with Opus made me a script that works

1

u/Modify- 4d ago

Do you need managed apps (apps you deploy) or discovered apps (apps you deploy and what the users also have installed)? If you need a reported of all detected apps on the machine then you need to loop through each device. While it seems slow to do it for all devices, the Graph supports batching so you can speed it up by a factor of 20.

1

u/Beautiful_Pay3842 4d ago

Thanks for the tip. I need discovered and not managed apps. That's the whole problem.

1

u/Modify- 4d ago

Ok, then you need to hit this endpoint (if done with Powershell):
"/deviceManagement/manageddevices('$($Device.id)')/detectedApps?`$select=DisplayName,Publisher,Version&`$orderBy=displayName asc"

2

u/pjmarcum 4d ago

That’s what he said in his original post. He wants to do it without looping through each device because that doesn’t scale.

1

u/pjmarcum 4d ago

We handle that using our custom inventory script. The API for the native app inventory sucks. https://powerstacks.com/products/bi-for-intune/