code: def get(method, hmc, uri, uri_parms, logon_required):
          
          query_str = uri_parms[0]
          try:
              console = hmc.consoles.lookup_by_oid(None)
          except KeyError:
              raise InvalidResourceError(method, uri)
          result_user_patterns = []
          filter_args = parse_query_parms(method, uri, query_str)
          for user_pattern in console.user_patterns.list(filter_args):
              result_user_pattern = {}
              for prop in user_pattern.properties:
                  if prop in ('element-uri', 'name', 'type'):
                      result_user_pattern[prop] = user_pattern.properties[prop]
              result_user_patterns.append(result_user_pattern)
          return {'user-patterns': result_user_patterns}
docs: Operation: List User Patterns.