curl --request GET \
--url https://app.trustivan.com/api/v1/identity/audit \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/identity/audit"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/identity/audit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/identity/audit"
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))
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}The administrative identity audit trail
Who configured single sign-on, who proved control of a domain, who issued a directory credential, and every membership a directory created or removed.
Append-only in the database: an audit trail the application can rewrite is not evidence, and this is precisely the table someone would want to edit during the incident it exists to record.
Each event records where it came from: source_ip (the client address
as TRUSTED_PROXIES resolves it), user_agent and request_id (the
X-Request-ID of the request that produced it). They are absent for
events no request produced (a sweep, the worker) and for events
recorded before they existed. actor_email is joined from the user
record when the trail is read; the row stores only the ID.
Sign-ins (login.succeeded, login.failed), sign-outs
(session.ended, session.revoked_all) and replayed refresh tokens
(session.replay_detected) are recorded in the person’s personal
organization; an SSO sign-in in the identity provider’s organization.
A refused sign-in is attributed to the system, not to the account
holder, and is recorded only for an account that exists.
Offset-paginated. has_more reports whether another page follows.
A malformed filter is refused with 400 rather than ignored.
curl --request GET \
--url https://app.trustivan.com/api/v1/identity/audit \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/identity/audit"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/identity/audit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/identity/audit"
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))
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Authorizations
Query Parameters
Response
The events, newest first, with has_more.