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