Sample Header Ad - 728x90

osascript "authorized to send Apple events to System Events. (-1743)" when invoked via JumpCloud

1 vote
1 answer
465 views
I have cooked up a JumpCloud Command to automate the configuration of desktop backgrounds. I can get the command to run on a test system (Monterey, 12.4) via Shell if I approve a dialog asking for permission. When I execute via JumpCloud, I get:
59:74: execution error: Not authorized to send Apple events to System Events. (-1743)
The command itself: ``` target_user=$(w | awk '$2 == "console"{print $1}') export target_user sudo -u $target_user osascript Security & Privacy > Privacy > Automation" but there are no apps listed under "Automation." Under "Full Disk Access" there's a check for "jumpcloud-agent" ... perhaps I can extend that somehow?
Asked by dannyman (141 rep)
Jul 25, 2022, 07:15 PM
Last activity: Aug 5, 2025, 06:01 PM