Occasionally, it may be necessary to grant a macOS end-user temporary Admin status to accomplish certain tasks. The attached script, created by well-known MacAdmin Ross Matsuda, utilizes MacManage to grant users Admin status for a provided timeframe (via the timeOut variable on line 10) and can be deployed via the Devices page.
When the script is run, users will be notified of their admin status with the following prompt:
The prompt text can be customized by changing the values of the title and description variables (lines 5 & 6).
Many thanks to Ross Matsuda for creating this streamlined workflow!
For more information on MacManage prompts, see this KB article on Prompting End Users with Custom MacManage Notifications