Set the DTML namespace for the python script to '_', then reference the user us = _.SecurityGetUser().getUserName() print us return printed