As another suggestion, you can try using the wwsh script to get direct access to the $db object in the admin course. Then you can have a look at what happens in the perl debugger when you try to get the admin user that way. Have a look at:
http://webwork.maa.org/wiki/WeBWorK_shell_-_wwsh
for instructions.
Jason
Installation
Error messages logging to admin course
This forum has a limit to the number of forum postings you can make in a given time period - this is currently set at 5 posting(s) in 1 day