如何知道用户是否在设置中禁用或删除了工作配置文件?

How to know if user disables or deletes work profile in settings?

我正在尝试查看当工作配置文件在客户端通过设置 禁用删除 时设备状态是否得到更新。

在客户端进行更改后,禁用和删除,enterprises.devices.get API 返回的 status 仍然是 ACTIVE

有没有办法发现客户端发生了变化?

遗憾的是,EMM 无法检测到这种情况,只能删除一段时间后未签入的设备。

为此,您可以使用 devices.get() method to check on either “lastStatusReportTime” or “lastPolicySyncTime” field on the Device resource and see whether the device is communicating to your backend. Then use devices.delete() 删除设备。