List users in an account
Retrieves every user that is a member of the account, including their role assignments, lock status, and last login - a single call per account covers a user access review. Users who are members of other accounts in the tenant are not included; enumerate accounts with GET /accounts and call this endpoint per account to cover a whole tenant.
curl -X GET "https://api.rad.security/accounts/example_string/users" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
import requests
import json
url = "https://api.rad.security/accounts/example_string/users"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://api.rad.security/accounts/example_string/users", {
method: "GET",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://api.rad.security/accounts/example_string/users", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://api.rad.security/accounts/example_string/users')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = 'Bearer YOUR_API_TOKEN'
response = http.request(request)
puts response.body
{
"user": [
{
"email": "user@example.com",
"id": "example_string",
"joined_at": "example_string",
"last_login_at": "example_string",
"locked": true,
"roles": [
{
"account_id": "example_string",
"account_name": "John Doe",
"level": "example_string",
"name": "John Doe"
}
]
}
]
}
{
"code": "example_string",
"request_id": "example_string",
"status": 42,
"validation_details": [
{
"code": "example_string",
"field": "example_string",
"message": "example_string",
"param": "example_string"
}
]
}
/accounts/{account_id}/usersTarget server for requests. Edit to use your own host.
Bearer token - just enter the token, "Bearer" prefix will be added automatically
Account id
Request Preview
Response
Response will appear here after sending the request
Authentication
Bearer token. Authentication token required.
Path Parameters
Account id