win32net.NetUserGetInfo

dict = NetUserGetInfo(server, username , level )

Retrieves information about a particular user account on a server.

Parameters

server : string/PyUnicode

The name of the server, or None.

username : string/PyUnicode

The user name

level : int

The information level contained in the data

Win32 API References

Search for NetUserGetInfo at msdn, google or google groups.

Return Value

The result will be a dictionary in one of the PyUSER_INFO_* formats, depending on the level parameter.