Retrieve a paginated list of members for a specific tenant.
curl --request GET \
--url https://{teamSlug}.teams.auth0.com/api/tenants/{tenantId}/members \
--header 'Authorization: Bearer <token>'import requests
url = "https://{teamSlug}.teams.auth0.com/api/tenants/{tenantId}/members"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{teamSlug}.teams.auth0.com/api/tenants/{tenantId}/members', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{teamSlug}.teams.auth0.com/api/tenants/{tenantId}/members",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{teamSlug}.teams.auth0.com/api/tenants/{tenantId}/members"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{teamSlug}.teams.auth0.com/api/tenants/{tenantId}/members")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{teamSlug}.teams.auth0.com/api/tenants/{tenantId}/members")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"members": [
{
"id": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"roles": [],
"given_name": "<string>",
"family_name": "<string>",
"nickname": "<string>"
}
],
"next": "<string>"
}{
"status": "<unknown>",
"type": "<string>",
"title": "<string>",
"details": "<string>"
}{
"status": "<unknown>",
"type": "<string>",
"title": "<string>",
"details": "<string>"
}{
"status": "<unknown>",
"type": "<string>",
"title": "<string>",
"details": "<string>"
}{
"status": "<unknown>",
"type": "<string>",
"title": "<string>",
"details": "<string>"
}{
"status": "<unknown>",
"type": "<string>",
"title": "<string>",
"details": "<string>"
}{
"status": "<unknown>",
"type": "<string>",
"title": "<string>",
"details": "<string>"
}This endpoint retrieves a paginated list of all members for a specific tenant.
GET
https://{teamSlug}.teams.auth0.com
/
api
/
tenants
/
{tenantId}
/
members
Retrieve a paginated list of members for a specific tenant.
curl --request GET \
--url https://{teamSlug}.teams.auth0.com/api/tenants/{tenantId}/members \
--header 'Authorization: Bearer <token>'import requests
url = "https://{teamSlug}.teams.auth0.com/api/tenants/{tenantId}/members"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{teamSlug}.teams.auth0.com/api/tenants/{tenantId}/members', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{teamSlug}.teams.auth0.com/api/tenants/{tenantId}/members",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{teamSlug}.teams.auth0.com/api/tenants/{tenantId}/members"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{teamSlug}.teams.auth0.com/api/tenants/{tenantId}/members")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{teamSlug}.teams.auth0.com/api/tenants/{tenantId}/members")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"members": [
{
"id": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"roles": [],
"given_name": "<string>",
"family_name": "<string>",
"nickname": "<string>"
}
],
"next": "<string>"
}{
"status": "<unknown>",
"type": "<string>",
"title": "<string>",
"details": "<string>"
}{
"status": "<unknown>",
"type": "<string>",
"title": "<string>",
"details": "<string>"
}{
"status": "<unknown>",
"type": "<string>",
"title": "<string>",
"details": "<string>"
}{
"status": "<unknown>",
"type": "<string>",
"title": "<string>",
"details": "<string>"
}{
"status": "<unknown>",
"type": "<string>",
"title": "<string>",
"details": "<string>"
}{
"status": "<unknown>",
"type": "<string>",
"title": "<string>",
"details": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The unique ID of the tenant. Unique identifier of the tenant
Query Parameters
Maximum number of items to return per page. Defaults to 50. Maximum 50
Required range:
1 <= x <= 50Checkpoint cursor for pagination; use the 'next' value from a previous response to fetch the next page
⌘I