Skip to main content

get_system_username

Return the current system user's username, or an empty string if the username could not be determined.

def get_system_username() - > string

Return the current system user's username, or an empty string if the username could not be determined.

Returns

TypeDescription
stringThe username of the current system user, or an empty string if the lookup fails due to environment restrictions.