code: def getent(refresh=False):
      '''
      Return the list of all info for all users
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' user.getent
      '''
      if 'user.getent' in __context__ and not refresh:
          return __context__['user.getent']
  
      ret = []
      for data in pwd.getpwall():
          ret.append(_format_info(data))
      __context__['user.getent'] = ret
      return ref getent(refresh=False):
      '''
      Return the list of all info for all users
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' user.getent
      '''
      if 'user.getent' in __context__ and not refresh:
          return __context__['user.getent']
  
      ret = []
      for data in pwd.getpwall():
          ret.append(_format_info(data))
      __context__['user.getent'] = ret
      return ret
docs: Return the list of all info for all users
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' user.getent