Posted on 04-15-2020 08:51 PM
Hello, I need someone help I'm trying to run a script via jamf policy in a few computer and want to do it all at once but I get this error bellow
execution error: Not authorized to send Apple events to System Events. (-1743)
Really need some help
Posted on 04-16-2020 01:42 AM
I have seen the "-1743" when running a shell script that wants to start on osascript to display information to the user. It only happens for a few nodes. I had no opportunity to debug this. I tried to run 'tccutil reset AppleEvents com.apple.Terminal' to clear this, but it did not solve the issue. I need more info from the client for further debugging.
Posted on 04-16-2020 09:28 AM
@mschroder thank you for the info, I found the issue I just created a profile using the PPPC utility and allow the TERMINAL, JAMF.app, jamfHelper, and osascript once the profile was installed everything went well
Posted on 04-16-2020 10:18 AM
jamf has built a PPPC mobileconfig for this: here
Download the .mobileconfig and upload it to your jamf pro server. Scope it to all computers that are 10.14.0 and above with UAMDM.
Posted on 04-16-2020 01:26 PM
Yes, there is a mobileconfig for this, this is why this works in most cases. And then there are the cases where it fails...