In regards to apps running with administrative access, my experience with a rooted device has always been that an app that asks for root privileges will do just that. It literally asks when you open the app. Then using (generally SuperSU) I choose whether or not to grant an app that privilege.
As for temporary root it really depends on the device. Rooting methods are different for different devices. Some of the reason is because Android is open source and most manufacturers provide their own version of Android with modifications to the source code. Root can also be dependent on what version of Android you are running, what version your bootloader is on, etc. The list goes on. In short it comes down to which device you have and what rooting methods are available for your device.
Also note, that many rooting methods will wipe the device as a safety precaution. This is generally when unlocking the bootloader is a requirement to root.
Most of my experience rooting has been with stock Android devices (Nexus/Pixel). These are easy. Google allows you to unlock the Bootloader and the process is basically this:
1. Unlock bootloader (wipes device)
2. Install a custom recovery that was built specifically for your model
3. Use the custom recovery to flash the root binaries to your phone and install SuperSU or equivalent.
So I guess, what device are you using? Why don't we start there and then see what options your device has for root.
Keep in mind I'm no Android expert. I have been rooting my devices for many years now but I'm not a developer. I can follow directions and understand the rooting process but I don't know code or how to explain all of the internal workings of a device