Hanzo AI
OpenapiO11y

Get users

Returns one org member together with every role they hold, by user id.

GET /v1/o11y/users/{id}

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

Returns one org member together with every role they hold, by user id. Admin gate.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyes

Response

StatusBodyMeaning
200o11y.O11yUserWithRolesOutok

200 body — 24 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11yUserWithRoles—
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.
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.
data.userRolesbodyo11y.O11yUserRole[]—UserRoles are their role assignments.
data.userRoles[].createdAtbodystring (date-time)—CreatedAt is when it was assigned.
data.userRoles[].idbodystring—ID is the assignment's own id.
data.userRoles[].rolebodyo11y.O11yRole—
data.userRoles[].role.createdAtbodystring (date-time)—CreatedAt is when the role was created.
data.userRoles[].role.descriptionbodystring—Description says what the role is for.
data.userRoles[].role.idbodystring—ID is the role id.
data.userRoles[].role.namebodystring—Name is the role's name.
data.userRoles[].role.orgIdbodystring—OrgID is the org the role belongs to.
data.userRoles[].role.typebodystring—Type is how the role came to be — managed by the platform or custom.
data.userRoles[].role.updatedAtbodystring (date-time)—UpdatedAt is when it last changed.
data.userRoles[].roleIdbodystring—RoleID is the role held.
data.userRoles[].updatedAtbodystring (date-time)—UpdatedAt is when the assignment last changed.
data.userRoles[].userIdbodystring—UserID is the user holding the role.
statusbodystring—Status is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y users get <id>

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page