Forum Discussion
Does Intune support expanding categories for mobile apps in the Graph API?
Hello everyone,
I'm using the Graph API to list mobile apps. I successfully use the $expand parameter with assignments, and I receive the mobile apps along with their assignments. However, when I try to use $expand with categories, I receive a 503 status response.
Here are the details:
This request works:
https://graph.microsoft.com/beta/deviceAppManagement/mobileApps?$filter=(isof('microsoft.graph.win32LobApp') and isAssigned eq true)&$expand=assignmentsThis request does not work:
https://graph.microsoft.com/beta/deviceAppManagement/mobileApps?$filter=(isof('microsoft.graph.win32LobApp') and isAssigned eq true)&$expand=categories
Is there support for expanding categories in Microsoft Intune using the Graph API?
Thank you!
4 Replies
If I use Microsft Graph-X-Ray, (I wrote a blog about that here https://powershellisfun.com/2023/10/07/powershell-intune-and-microsoft-graph-x-ray/). I see this when changing categories for an App:
GET https://graph.microsoft.com/beta/deviceAppManagement/mobileApps/8158287f-af1c-4178-b55e-a49144e2afa6/?$expand=categories,assignments$expand=categories,assignments, perhaps you need both in the request? But check out listing and changing things while having Graph X-Ray open in your browser. It will show you the URL and PowerShell cmdlets
- shambariCopper Contributorthanks for replying, but what i'm looking for is to get catgeories of all mobileApps not only for a specific appId
- I understand. I was referring to how you could see the request using Microsoft Graph X-Ray. And that it showed me how to use $expand=categories,assignments , did that do anything to your original request? (Change deviceAppManagement/mobileApps?$filter=(isof('microsoft.graph.win32LobApp') and isAssigned eq true)&$expand=assignments to deviceAppManagement/mobileApps?$filter=(isof('microsoft.graph.win32LobApp') and isAssigned eq true)&$expand=categories,assignments )