parameters: (self, query=None, exclude=None, maxResults=9999)
return_statement: return sorted(groups)
docstring: Return a list of groups matching the specified criteria.
  
          :param query: filter groups by name with this string
          :param exclude: filter out groups by name with this string
          :param maxResults: maximum results to return. defaults to 9999
docstring_summary: Return a list of groups matching the specified criteria.
docstring_tokens: Return a list of groups matching the specified criteria .
function: def groups(self, query=None, exclude=None, maxResults=9999):
          """Return a list of groups matching the specified criteria.
  
          :param query: filter groups by name with this string
          :param exclude: filter out groups by name with this string
          :param maxResults: maximum results to return. defaults to 9999
          """
          params = {}
          groups = []
          if query is not None:
              params['query'] = query
          if exclude is not None:
              params['exclude'] = exclude
          if maxResults is not None:
              params['maxResults'] = maxResults
          for group in self._get_json('groups/picker', params=params)['groups']:
              groups.append(group['name'])
          return sorted(groups)
function_tokens: def groups ( self , query = None , exclude = None , maxResults = 9999 ) : params = { } groups = [ ] if query is not None : params [ 'query' ] = query if exclude is not None : params [ 'exclude' ] = exclude if maxResults is not None : params [ 'maxResults' ] = maxResults for group in self . _get_json ( 'groups/picker' , params = params ) [ 'groups' ] : groups . append ( group [ 'name' ] ) return sorted ( groups )