Hi folks,
I am doing a task of making an app to resolve an issue. This app will exist as a standalone on our Macs, for users who are not admins.
As part of one of the scripts I am using within the app, I will need to force/trigger the Mac to perform a check-in at a particular stage of a script. The script will be run by the current logged-in non-admin user.
Now, I know the obvious is to simply do a sudo jamf policy
and I could always include an administrator username and password within a script of the app to make it run as that user instead. But I would prefer not to do that, as I don't feel comfortable in including the admin password within the script, plus it would cause issues every time we change the admin password.
What I am trying to work out is a way for a standard user to simply trigger to the root user to perform a check-in policy. Surely there must be a way to do this outside Self Service?
Anyone got any ideas?
At the moment, my mind is thinking of a complicated potential setup of where I have a continuous LaunchDaemon to trigger the sudo jamf policy
whenever a file is touched in a particular location. Please tell me there is an easier way than this! :-)
Many thanks.