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

  1. Module startup for the Module Activators
  2. While scheduled Scheduled Tasks are being executed

About the daemon user

How to use the daemon user

Use the methods on the Daemon class to call into the pre-prescribed methods