Temporary admin account for 5 days?

Good morning, I have a situation that I would

like to know if it is possible to do. I need to create a temporary

administrative account, so that a user can use it, in case the system needs to

make some changes at the administrative level. For example, the account will

last 5 days and then be deactivated. Is this possible with mac mojave. Thanks

for any ideas.

Posted on Jan 24, 2020 10:02 AM

Reply
9 replies

Jan 24, 2020 2:01 PM in response to Jack-2020

Jack-2020 wrote:
Temporary admin account ...the account willlast 5 days and then be deactivated. Is this possible with mac mojave.


This would need to a managed machine, Enterprise, mobile, active directory list...


If the device is bound to:


Active Directory

Mobile device management (MDM)

Device Enrollment Program (DEP)

Apple Configurator

Jamf Pro is comprehensive enterprise management




Jan 24, 2020 6:21 PM in response to Jack-2020

It would be best to just create a standard user account.


Or you could create a cron job which would delete the user account after a set period of time. I believe the "dscl" command is used to modify accounts. Of course anyone with admin access could discover and disable it.


Another option would be to lock the whole computer using FindMy when the five days are up.



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Temporary admin account for 5 days?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.