def get_auto_login():
    cmd = ['defaults',
           'read',
           '/Library/Preferences/com.apple.loginwindow.plist',
           'autoLoginUser']
    ret = __salt__['cmd.run_all'](cmd, ignore_retcode=True)
    return False if ret['retcode'] else ret['stdout']
.. versionadded:: 2016.3.0
dataset/ETHPy150Open saltstack/salt/salt/modules/mac_user.py/get_auto_login