fleetdm / fleet

Open-source platform for IT, security, and infrastructure teams. (Linux, macOS, Chrome, Windows, cloud, data center)
https://fleetdm.com
Other
3.13k stars 432 forks source link

BYOD iPhone deleted in Fleet never re-appears even though it's still enrolled #22941

Open harrisonravazzolo opened 1 month ago

harrisonravazzolo commented 1 month ago

Fleet version: 4.58

Web browser and operating system: Chrome running on macOS


💥  Actual behavior

If I delete a BYOD (only BYOD? Unsure.) in Fleet, the device will not reappear in Hosts console even though the device will still have profiles installed on it.

This issue is also relevant: https://github.com/fleetdm/fleet/issues/22819

🧑‍💻  Steps to reproduce

Enroll BYOD, delete in Hosts page.

🕯️ More info (optional)

Deleting a device could include an option to also remove the device from MDM like mentioned here:https://github.com/fleetdm/fleet/issues/22820

sharon-fdm commented 3 weeks ago

@getvictor, does this sound familiar? Do you know if this was fixed?

getvictor commented 3 weeks ago

This issue was fixed for ABM (not BYOD) devices #21073 because we never fully delete devices that are still in ABM.

One way to fix this is to delete the device, but then issue an MDM refetch command. If refetch results come back successfully (which could be days later), we create a new host from the results.