Posted on 02-15-2023 11:48 AM
Is there a way we can query a computer for its locked or unlocked state? I'm familiar with endpoints to get the command status...
...but neither of these tell me if the device has been unlocked after it was successfully locked
Solved! Go to Solution.
Posted on 02-16-2023 07:42 AM
Thanks! After playing with the APIs a bit more, I noticed there's a ProfileList command that's issued immediately after a computer is unlocked. If anyone else wants to assert something similar, you can see the pattern via this endpoint: /JSSResource/computerhistory/id/{id}/subset/commands
Posted on 02-15-2023 11:53 AM
I don't know of a way to check for this state.
Truthfully though, if a device is checking in to Jamf, then it would have to be unlocked, since the nature of a locked machine is that it's not usable and wouldn't have a network/internet connection to even be able to check into Jamf Pro.
Posted on 02-16-2023 07:42 AM
Thanks! After playing with the APIs a bit more, I noticed there's a ProfileList command that's issued immediately after a computer is unlocked. If anyone else wants to assert something similar, you can see the pattern via this endpoint: /JSSResource/computerhistory/id/{id}/subset/commands