robjschroeder / Elevate

Elevate is a script that can be ran from Jamf Pro to help elevate a standard user to admin for a specific amount of time
35 stars 5 forks source link

Account Not Demoted after shutdown #36

Open meshyamsundar opened 8 months ago

meshyamsundar commented 8 months ago

Used this script and Elevated the account to admin for 5 min, immediately shut down the device once the timer started and Turned it on again after 5 mins, The User account is still an Admin. I have set RemoveadminRights as True.

When I check the Logs it says

Elevate: is already admin Elevate: Clicked cancel, exiting..

there is no user information, I guess it's running before the user logs in and gets quit and removes the script form Temp, and I still have admin rights.

meshyamsundar commented 8 months ago

If I log out and login again, the script works fine, but if I shut it down and turn it on again, my account does not getting changed back to standard, it's still an Admin

robjschroeder commented 8 months ago

Are you using Jamf Connect in your environment?

meshyamsundar commented 8 months ago

Yes

robjschroeder commented 8 months ago

So when using Jamf Connect, if your user becomes admin and the computer restarts, Jamf Connect will not make that admin user a standard user. However if you log out and log back in, Jamf Connect can demote that user at the login window.