nodes: 0, module; 1, function_definition; 2, function_name:search; 3, parameters; 4, block; 5, identifier:self; 6, identifier:q; 7, default_parameter; 8, default_parameter; 9, default_parameter; 10, default_parameter; 11, expression_statement; 12, expression_statement; 13, expression_statement; 14, return_statement; 15, identifier:start; 16, integer:1; 17, identifier:num; 18, integer:10; 19, identifier:sortField; 20, string:"username"; 21, identifier:sortOrder; 22, string:"asc"; 23, comment:"""
          The User Search operation searches for users in the portal. The
          search index is updated whenever users are created, updated, or
          deleted. There can be a lag between the time that the user is
          updated and the time when it's reflected in the search results. The
          results only contain users that the calling user has permissions to
          see. Users can control this visibility by changing the access
          property of their user.
  
          Inputs:
          q -The query string to search the users against.
          start - The number of the first entry in the result set response.
                  The index number is 1-based. The default value of start is
                  1 (for example, the first search result). The start
                  parameter, along with the num parameter can be used to
                  paginate the search results.
          num - The maximum number of results to be included in the result
                set response. The default value is 10, and the maximum
                allowed value is 100. The start parameter, along with the num
                parameter can be used to paginate the search results. The
                actual number of returned results may be less than num. This
                happens when the number of results remaining after start is
                less than num.
          sortField - Field to sort by. The allowed field names are username
                      and created.
          sortOrder - Describes whether the returned results are in ascending
                      or descending order. Default is ascending.
                      Values: asc | desc
          """; 24, assignment; 25, assignment; 26, call; 27, identifier:params; 28, dictionary; 29, identifier:url; 30, attribute; 31, attribute; 32, argument_list; 33, pair; 34, pair; 35, pair; 36, pair; 37, pair; 38, pair; 39, identifier:self; 40, identifier:_url; 41, identifier:self; 42, identifier:_get; 43, keyword_argument; 44, keyword_argument; 45, keyword_argument; 46, keyword_argument; 47, keyword_argument; 48, string:"f"; 49, string:"json"; 50, string:"q"; 51, identifier:q; 52, string:"start"; 53, identifier:start; 54, string:"num"; 55, identifier:num; 56, string:"sortField"; 57, identifier:sortField; 58, string:"sortOrder"; 59, identifier:sortOrder; 60, identifier:url; 61, identifier:url; 62, identifier:param_dict; 63, identifier:params; 64, identifier:securityHandler; 65, attribute; 66, identifier:proxy_url; 67, attribute; 68, identifier:proxy_port; 69, attribute; 70, identifier:self; 71, identifier:_securityHandler; 72, identifier:self; 73, identifier:_proxy_url; 74, identifier:self; 75, identifier:_proxy_port
code: def search(self,
                  q,
                  start=1,
                  num=10,
                  sortField="username",
                  sortOrder="asc"):
          """
          The User Search operation searches for users in the portal. The
          search index is updated whenever users are created, updated, or
          deleted. There can be a lag between the time that the user is
          updated and the time when it's reflected in the search results. The
          results only contain users that the calling user has permissions to
          see. Users can control this visibility by changing the access
          property of their user.
  
          Inputs:
          q -The query string to search the users against.
          start - The number of the first entry in the result set response.
                  The index number is 1-based. The default value of start is
                  1 (for example, the first search result). The start
                  parameter, along with the num parameter can be used to
                  paginate the search results.
          num - The maximum number of results to be included in the result
                set response. The default value is 10, and the maximum
                allowed value is 100. The start parameter, along with the num
                parameter can be used to paginate the search results. The
                actual number of returned results may be less than num. This
                happens when the number of results remaining after start is
                less than num.
          sortField - Field to sort by. The allowed field names are username
                      and created.
          sortOrder - Describes whether the returned results are in ascending
                      or descending order. Default is ascending.
                      Values: asc | desc
          """
          params = {
              "f" : "json",
              "q" : q,
              "start" : start,
              "num" : num,
              "sortField" : sortField,
              "sortOrder" : sortOrder
          }
          url = self._url
          return self._get(
              url = url,
              param_dict=params,
              securityHandler=self._securityHandler,
              proxy_url=self._proxy_url,
              proxy_port=self._proxy_port)