get_user

support.get_user()

Returns the user running this session

This will return the username of the logged-in user. If the user is logged in as ‘root’ (or by doing ‘su’), then there is no way to find out who the actual user is.