user-real-login-name

user-real-login-name is a built-in function in `C source code'.

(user-real-login-name)

Return the name of the user's real uid, as a string.
This ignores the environment variables LOGNAME and USER, so it differs from
`user-login-name' when running under `su'.