Daemon User
As of OpenMRS 1.7.0, there is a user that exists in every person's database that is used as the "currently authenticated user" for certain tasks. Â This user is called the daemon user and is effectively a "root" user.
Tasks run as the daemon user
Module startup for the Module Activators
While scheduled Scheduled Tasks are being executed
About the daemon user
The daemon user has all privileges
No one can log in as the daemon user
Only the few prescribed tasks can be run as the daemon user
How to use the daemon user
Use the methods on the Daemon
class to call into the pre-prescribed methods