Hey there Jamf people!
I am currently hitting a wall during Okta Device Trust Enrollment.
ERROR: Command '['launchctl', 'asuser', '502', 'sudo', '-u', 'jcombs', 'security', 'default-keychain']' returned non-zero exit status 1.
ERROR: Error in accessing default keychain
During my testing, I had it set to a custom trigger so I could invoke the policies I need whenever, and that all worked great. I would get the certificates downloaded just fine. However, since replacing the policy with run on either enrollment complete or recurring check-in, I get the above error "Error in accessing default keychain."
If I switch it back to a custom trigger to test again though, it works flawlessly and enrolls/downloads the certificate no problem.
I am using the scripts and guide from Okta, and can't find anything like this in their troubleshooting section and tried searching here on Jamf if anyone else ran into this, but can't seem to find anything that is similar.
Does anyone by chance know why it would fail on recurring check-in but work fine if run locally with a custom trigger, or potentially know a workaround with that?