def users(self,
              start=1,
              num=10,
              sortField="fullName",
              sortOrder="asc",
              role=None):
        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