How-To : Get OS Auth Username In Python.

Though I would post a quick note on a useful python module i discovered ‘getpass’

>>> import getpass
>>> getpass.getuser()
'sbr2'

I am using it with arpy to set the ‘Created By’ field in the geodatabase when doing processing with tools or scripts.

Simple stuff but really handy!