Open pintomi1989 opened 7 months ago
Hi, typically it could corresspond to
MacOS:
mdm_turned_on_at
: set whenever the profile is installedWindows :
mdm_turned_on_at:
set whenever Fleet is connected and activated in the "Work or school account"Please see https://fleetdm.com/docs/rest-api/rest-api#default-response30 json example to view the key / value that is being requested for changes. Thanks.
Whatever we call things works behind the scenes if customers are only using Fleet UI. I think once people are building integrations with the API, disambiguating the fields becomes more critical so maybe we need to revisit?
Hey @pintomi1989, heads up, we brought this into the upcoming design sprint (4.49).
Fleet version: <!-- Copy this from the "My account" page in the Fleet UI, or run
fleetctl --version
--> Reported in Fleet Fleet 4.47.0 Go go1.21.7 osquery 5.11.0 Fleetd 1.22.0 Web browser and operating system: Current versionđź’Ą Â Actual behavior
Unexpected behaviour in the DEP / fleet sync flow on the getHost api data here are the steps we took:
Then, after a while, the
last_enrolled_at
date is changed again to a correct timestamp (the new “enrollment” date)What customer expected was the
last_enrolled_at
to be also null or empty whenever a device is deleted from Fleet.Customer "internal sync & flow rely on this." Are they wrong on this assumption?
Also, we feel like the
last_enrolled_at
(or soon mdm_turned_on https://github.com/fleetdm/fleet/issues/17710) should update at the same time you update the “mdm” values (edited)🧑‍💻  Steps to reproduce
Questions to #g-mdm from @nonpunctual:
When an MDM enrolled device is deleted from Fleet should the "last_enrolled_at" date be "null" post deletion? Do we intentionally keep the "last_enrolled_at" date assuming that it might be necessary information if the same device enrolls again?
Customer assumes the field would be null post-deletion. I think this assumption is probably not aligned with with was built.
follow up on this: the customer is asking if they are seeing dates OTHER than 2000-01-01 00:00:00 in the last_enrolled_at field after deletion from Fleet, is that a bug? The way I read what you said above 2000-01-01 00:00:00 is the default for NEW records, not for devices that have records that have been deleted & re-added. Is that correct?
Answer from #g-mdm
https://fleetdm.com/handbook/company/why-this-way#why-does-fleet-use-mdm-on-off-instead-of-mdm-enrolled-unenrolled