win32cred.CredUIParseUserName

(PyUnicode, PyUnicode) = CredUIParseUserName(UserName)

Parses a full username into domain and username

Parameters

UserName : PyUnicode

Username as returned by win32cred::CredUIPromptForCredentials

Return Value

Returns the username and domain