nudge icon indicating copy to clipboard operation
nudge copied to clipboard

Feature request: Pre Action before opening Software Update window

Open marcelpogorzelski opened this issue 3 years ago • 4 comments

The ability to add an action that runs after user presses Update Device and before the software update opens. It's similar to actionButtonPath but after resolving the action it continues with the build in dynamic capability for updateDevice.

The though behind this is the feature to add a logic that elevates users too administrators if needed. We use Privileges in our environment, this feature would ensure us the user is admin when entering software update.

marcelpogorzelski avatar Apr 01 '22 08:04 marcelpogorzelski

I'm not sure how to accommodate this as I would have no way for Nudge to understand when another tool outside of its control is complete. I don't have any interesting coding specific things to Privileges, so unless you can outline what generic ruleset Nudge could use to determine this, I will likely close this feature request.

erikng avatar Apr 01 '22 13:04 erikng

If you're asking users to update their device (like, from 12.3 to 12.3.1), that does not require admin privileges - only volume owner credentials if the device has an Apple Silicon chip. Only OS upgrades (example: upgrading from Big Sur to Monterey) require admin privileges.

flammable avatar Apr 01 '22 15:04 flammable

I am unfortunately not familiar with Swift. I was thinking that the Pre Action as a shell command that does what we want then finishes. After that Update Device would trigger. Nudge wouldn't need to know what the Pre Action actually did. It just waits for the Pre Action to finish and continues as usual after that.

marcelpogorzelski avatar Apr 05 '22 09:04 marcelpogorzelski

Do you need Adminrights for the shell command, to give the user admin rights with SAP Privileges APP? Then it is not possible because nudge only runs in the User Context.

You could bundle the update device button with a Jamf policy or Munki policy to achieve this.

colorenz avatar Apr 07 '22 10:04 colorenz