Skip to content

Retrieve all API-only service accounts configured for the organization

Request

Security
JWTAuthorizer
curl -i -X GET \
  https://apidocs.trustgrid.io/_mock/v2/service-user \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

A list of service users

Bodyapplication/json
Array [
namestring

Service account name (used as identifier)

statusstring

Whether the service account is active

Enum:"active""inactive"
clientIdstring

Client ID used for API authentication (present after token generation)

policyIdsArray of strings

Named policy IDs attached to this service account

Example:
[ "builtin-tg-monitor" ]
tokenCreatedinteger

Unix epoch timestamp (seconds) when the API token was last generated

orgIdstring

Organization ID

]
Response
[ { "name": "string", "status": "active", "clientId": "string", "policyIds": [], "tokenCreated": 0, "orgId": "string" } ]