nodes: 0, module; 1, function_definition; 2, function_name:users; 3, parameters; 4, block; 5, identifier:self; 6, default_parameter; 7, default_parameter; 8, default_parameter; 9, default_parameter; 10, default_parameter; 11, expression_statement; 12, expression_statement; 13, expression_statement; 14, expression_statement; 15, if_statement; 16, if_statement; 17, if_statement; 18, import_from_statement; 19, expression_statement; 20, if_statement; 21, expression_statement; 22, return_statement; 23, identifier:start; 24, integer:1; 25, identifier:num; 26, integer:10; 27, identifier:sortField; 28, string:"fullName"; 29, identifier:sortOrder; 30, string:"asc"; 31, identifier:role; 32, None; 33, comment:"""
          Lists all the members of the organization. The start and num paging
          parameters are supported.
  
          Inputs:
             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 (that is, 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.
             sortField - field to sort on
             sortOrder - asc or desc on the sortField
             role - name of the role or role id to search
          Output:
           list of User classes
          """; 34, assignment; 35, assignment; 36, assignment; 37, not_operator; 38, block; 39, not_operator; 40, block; 41, not_operator; 42, block; 43, relative_import; 44, dotted_name; 45, assignment; 46, comparison_operator:"users" in res; 47, block; 48, assignment; 49, identifier:res; 50, identifier:users; 51, list; 52, identifier:url; 53, binary_operator:self._url + "/users"; 54, identifier:params; 55, dictionary; 56, comparison_operator:role is None; 57, expression_statement; 58, comparison_operator:sortField is None; 59, expression_statement; 60, comparison_operator:sortOrder is None; 61, expression_statement; 62, import_prefix; 63, dotted_name; 64, identifier:Community; 65, identifier:res; 66, call; 67, string:"users"; 68, identifier:res; 69, if_statement; 70, subscript; 71, identifier:users; 72, attribute; 73, string:"/users"; 74, pair; 75, pair; 76, pair; 77, identifier:role; 78, None; 79, assignment; 80, identifier:sortField; 81, None; 82, assignment; 83, identifier:sortOrder; 84, None; 85, assignment; 86, identifier:_community; 87, attribute; 88, argument_list; 89, comparison_operator:len(res['users']) > 0; 90, block; 91, identifier:res; 92, string; 93, identifier:self; 94, identifier:_url; 95, string:"f"; 96, string:"json"; 97, string:"start"; 98, identifier:start; 99, string:"num"; 100, identifier:num; 101, subscript; 102, identifier:role; 103, subscript; 104, identifier:sortField; 105, subscript; 106, identifier:sortOrder; 107, identifier:self; 108, identifier:_post; 109, keyword_argument; 110, keyword_argument; 111, keyword_argument; 112, keyword_argument; 113, keyword_argument; 114, call; 115, integer:0; 116, expression_statement; 117, if_statement; 118, expression_statement; 119, for_statement; 120, string_content:users; 121, identifier:params; 122, string; 123, identifier:params; 124, string; 125, identifier:params; 126, string; 127, identifier:url; 128, identifier:url; 129, identifier:param_dict; 130, identifier:params; 131, identifier:securityHandler; 132, attribute; 133, identifier:proxy_url; 134, attribute; 135, identifier:proxy_port; 136, attribute; 137, identifier:len; 138, argument_list; 139, assignment; 140, comparison_operator:parsed.netloc.lower().find('arcgis.com') == -1; 141, block; 142, else_clause; 143, assignment; 144, identifier:r; 145, subscript; 146, block; 147, string_content:role; 148, string_content:sortField; 149, string_content:sortOrder; 150, identifier:self; 151, identifier:_securityHandler; 152, identifier:self; 153, identifier:_proxy_url; 154, identifier:self; 155, identifier:_proxy_port; 156, subscript; 157, identifier:parsed; 158, call; 159, call; 160, unary_operator; 161, expression_statement; 162, block; 163, identifier:com; 164, call; 165, identifier:res; 166, string; 167, expression_statement; 168, identifier:res; 169, string; 170, attribute; 171, argument_list; 172, attribute; 173, argument_list; 174, integer:1; 175, assignment; 176, expression_statement; 177, identifier:Community; 178, argument_list; 179, string_content:users; 180, call; 181, string_content:users; 182, identifier:urlparse; 183, identifier:urlparse; 184, attribute; 185, call; 186, identifier:find; 187, string; 188, identifier:cURL; 189, binary_operator:"%s://%s/%s/sharing/rest/community" % (parsed.scheme,
                                                                    parsed.netloc,
                                                                    parsed.path[1:].split('/')[0]); 190, assignment; 191, keyword_argument; 192, keyword_argument; 193, keyword_argument; 194, keyword_argument; 195, attribute; 196, argument_list; 197, identifier:self; 198, identifier:_url; 199, attribute; 200, argument_list; 201, string_content:arcgis.com; 202, string:"%s://%s/%s/sharing/rest/community"; 203, tuple; 204, identifier:cURL; 205, binary_operator:"%s://%s/sharing/rest/community" % (parsed.scheme,
                                                                 parsed.netloc); 206, identifier:url; 207, identifier:cURL; 208, identifier:securityHandler; 209, attribute; 210, identifier:proxy_url; 211, attribute; 212, identifier:proxy_port; 213, attribute; 214, identifier:users; 215, identifier:append; 216, call; 217, attribute; 218, identifier:lower; 219, attribute; 220, attribute; 221, subscript; 222, string:"%s://%s/sharing/rest/community"; 223, tuple; 224, identifier:self; 225, identifier:_securityHandler; 226, identifier:self; 227, identifier:_proxy_url; 228, identifier:self; 229, identifier:_proxy_port; 230, attribute; 231, argument_list; 232, identifier:parsed; 233, identifier:netloc; 234, identifier:parsed; 235, identifier:scheme; 236, identifier:parsed; 237, identifier:netloc; 238, call; 239, integer:0; 240, attribute; 241, attribute; 242, attribute; 243, identifier:user; 244, subscript; 245, attribute; 246, argument_list; 247, identifier:parsed; 248, identifier:scheme; 249, identifier:parsed; 250, identifier:netloc; 251, identifier:com; 252, identifier:users; 253, identifier:r; 254, string:"username"; 255, subscript; 256, identifier:split; 257, string; 258, attribute; 259, slice; 260, string_content:/; 261, identifier:parsed; 262, identifier:path; 263, integer:1
code: def users(self,
                start=1,
                num=10,
                sortField="fullName",
                sortOrder="asc",
                role=None):
          """
          Lists all the members of the organization. The start and num paging
          parameters are supported.
  
          Inputs:
             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 (that is, 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.
             sortField - field to sort on
             sortOrder - asc or desc on the sortField
             role - name of the role or role id to search
          Output:
           list of User classes
          """
          users = []
          url = self._url + "/users"
          params = {
              "f" : "json",
              "start" : start,
              "num" : num
          }
          if not role is None:
              params['role'] = role
          if not sortField is None:
              params['sortField'] = sortField
          if not sortOrder is None:
              params['sortOrder'] = sortOrder
          from ._community import Community
          res = self._post(url=url,
                              param_dict=params,
                              securityHandler=self._securityHandler,
                              proxy_url=self._proxy_url,
                              proxy_port=self._proxy_port)
  
          if "users" in res:
              if len(res['users']) > 0:
                  parsed = urlparse.urlparse(self._url)
                  if parsed.netloc.lower().find('arcgis.com') == -1:
                      cURL = "%s://%s/%s/sharing/rest/community" % (parsed.scheme,
                                                                    parsed.netloc,
                                                                    parsed.path[1:].split('/')[0])
                  else:
                      cURL = "%s://%s/sharing/rest/community" % (parsed.scheme,
                                                                 parsed.netloc)
                  com = Community(url=cURL,
                                  securityHandler=self._securityHandler,
                                  proxy_url=self._proxy_url,
                                  proxy_port=self._proxy_port)
                  for r in res['users']:
                      users.append(
                          com.users.user(r["username"])
                      )
          res['users'] = users
          return res