Hanzo AI
OpenapiO11y

List users

Returns every org member holding a role, by role id.

GET /v1/o11y/roles/{id}/users

Addresshttps://api.hanzo.ai/v1/o11y/roles/{id}/users
MethodGET
OperationGetUsersByRoleID
AuthAuthorization: Bearer $HANZO_API_KEY

Returns every org member holding a role, by role id. Admin gate.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyes

Response

StatusBodyMeaning
200o11y.O11yUsersOutok

200 body — 10 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11yUser[]—Data holds the members.
data[].createdAtbodystring (date-time)—CreatedAt is when they joined.
data[].displayNamebodystring—DisplayName is what the console shows for them.
data[].emailbodystring—Email is their address.
data[].idbodystring—ID is the user id.
data[].isRootbodyboolean—IsRoot marks the org's root user, which cannot be deleted or demoted.
data[].orgIdbodystring—OrgID is the org they belong to.
data[].statusbodystring—Status is their lifecycle state — active, pending_invite or deleted.
data[].updatedAtbodystring (date-time)—UpdatedAt is when their record last changed.
statusbodystring—Status is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y roles users <id>

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page