Graph API: trying to get applocker file data

Neef, Bert 1 Reputation point
2021-07-28T16:35:51.347+00:00

Hi,

I am playing around with graph for endpoint manager and I am working on getting the windowsInformationProtectionAppLockerFile data.

I have a policy with ID M_7cd2b7fd-a0fe-41b3-b04e-19f635f4e1d8 and can query assignments (through the Graph Explorer) https://graph.microsoft.com/beta/deviceAppManagement/windowsInformationProtectionPolicies/M_7cd2b7fd-a0fe-41b3-b04e-19f635f4e1d8/assignments 

but when I try to get the protectedAppLockerFiles https://graph.microsoft.com/beta/deviceAppManagement/windowsInformationProtectionPolicies/M_7cd2b7fd-a0fe-41b3-b04e-19f635f4e1d8/protectedAppLockerFiles 

I get a HTTP 400 error:
"code": "No method match route template",
"message": "No OData route exists that match template ~/singleton/navigation/key/navigation with http verb GET for request /MAMAdmin_2107/MAMAdminFEService/deviceAppManagement/windowsInformationProtectionPolicies('M_7cd2b7fd-a0fe-41b3-b04e-19f635f4e1d8')/protectedAppLockerFiles.",

Anyone can help me format the query in such a way I do get the expected data?

Thanks in advance,

Bert

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,176 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Lu Dai-MSFT 28,411 Reputation points
    2021-07-29T07:38:05.677+00:00

    @Neef, Bert Thanks for posting in our Q&A.

    For the error you met, it seems that the format of the URL is incorrect. May be we can go to Intune portal, click "F12" and go to the location in Intune portal where we can get WindowsInformationProtectionPolicies to get the correct URL. For example:
    118968-image.png

    At the same time, I have done the test in my lab. I find that it just shows the AppLocker file name and it will not show the data in this file.
    118992-image.png

    I think it is a normal situation, because we also couldn't see the AppLocker file data in intune portal and just see the file name. So, it seems that Graph API couldn't get the specific data.
    118903-image.png

    Hope the above information will help.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.