Hi,
I am trying to retrieve the organisation members but I am getting the error ConnectionRefusedError: [Errno 61] Connection refused
Below is the code to retrieve the organisation members,
def get_users(mgmt_access_token,org_id,my_tenant):
conn = http.client.HTTPSConnection("")
headers = {"authorization": f"Bearer {mgmt_access_token}"}
conn.request(
"GET",
f"/{my_tenant}.us.auth0.com/api/v2/organizations/{org_id}/members",
headers=headers,
)
res = conn.getresponse()
data = res.read()
return data.decode("utf-8")
Thank you in advance.