The built-in Apple software update payload that we can use in a policy will save a plist file to /Library/Application Support/JAMF called .userdelay.plist. The presence of this plist means that the user has selected one of the deferral options. It was easy to create an extension attribute that checks the file path above for the plist file, but what I would also like to do is track how long of a deferral the user selected. The text of the plist file is below. What I would like to do is make an extension attribute that will report the value for the key called "lastChosenDeferDate".
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>140</key>
<dict>
<key>deferStartDate</key>
<date>2021-08-11T14:08:46Z</date>
<key>lastChosenDeferDate</key>
<date>2021-08-13T14:08:46Z</date>
</dict>
</dict>
</plist>
I thought this would basically be the same as the command we would use to find the version of an app installed, which is to get the value of the CFBundleShortVersionString key in info.plist. That command won't work on the userdelay.plist file. Does anyone know how I can get what I need for my extension attribute?