Hanzo
OpenapiO11y

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

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[].displayNamebodystringDisplayName is what the console shows for them.
data[].emailbodystringEmail is their address.
data[].idbodystringID is the user id.
data[].isRootbodybooleanIsRoot marks the org's root user, which cannot be deleted or demoted.
data[].orgIdbodystringOrgID is the org they belong to.
data[].statusbodystringStatus is their lifecycle state — active, pending_invite or deleted.
data[].updatedAtbodystring (date-time)UpdatedAt is when their record last changed.
statusbodystringStatus 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