You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The initiateOnDemandProactiveRemediation action seems to not be subject to script package filters. Is this intended?
In a lab I have created this scenario:
The script package is configured to include an empty Entra group. There are no principals added to that group.
The script package is configured to exclude one Entra group - that one group has one Entra device as its member.
The Entra device that has been added to that group is represented in the Intune service as a distinct object, but they are the same device/host.
The script package is set to run every 24 hours. After waiting several days, I can see that the script does not run on the device - this is expected.
I have created an Entra service principal and granted it (and provided admin consent for) the MS Graph app role called DeviceManagementManagedDevices.PrivilegedOperations.All.
Next, I acquired a token for the service principal. With that token, I submitted a request to the device's initiateOnDemandProactiveRemediation endpoint:
I expected this to fail, as the script package excludes the Entra group that this device belongs to; however, the script successfully ran on the endpoint.
Is this intended behavior?
Thank you.
The text was updated successfully, but these errors were encountered:
Hello,
The initiateOnDemandProactiveRemediation action seems to not be subject to script package filters. Is this intended?
In a lab I have created this scenario:
The script package is set to run every 24 hours. After waiting several days, I can see that the script does not run on the device - this is expected.
I have created an Entra service principal and granted it (and provided admin consent for) the MS Graph app role called
DeviceManagementManagedDevices.PrivilegedOperations.All
.Next, I acquired a token for the service principal. With that token, I submitted a request to the device's initiateOnDemandProactiveRemediation endpoint:
I expected this to fail, as the script package excludes the Entra group that this device belongs to; however, the script successfully ran on the endpoint.
Is this intended behavior?
Thank you.
The text was updated successfully, but these errors were encountered: