

def get_loginclass(name):
    "\n    Get the login class of the user\n\n    .. versionadded:: 2016.3.0\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' user.get_loginclass foo\n\n    "
    userinfo = __salt__['cmd.run_stdout'](['pw', 'usershow', '-n', name])
    userinfo = userinfo.split(':')
    return {
        'loginclass': (userinfo[4] if (len(userinfo) == 10) else ''),
    }

dataset/ETHPy150Open saltstack/salt/salt/modules/pw_user.py get_loginclass/original