Hanzo
OpenapiO11y

Returns every role one org member holds, by user id.

Returns every role one org member holds, by user id.

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

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

Returns every role one org member holds, by user id. Admin gate.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyes

Response

StatusBodyMeaning
200o11y.O11yRolesOutok

200 body — 9 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11yRole[]Data holds the roles.
data[].createdAtbodystring (date-time)CreatedAt is when the role was created.
data[].descriptionbodystringDescription says what the role is for.
data[].idbodystringID is the role id.
data[].namebodystringName is the role's name.
data[].orgIdbodystringOrgID is the org the role belongs to.
data[].typebodystringType is how the role came to be — managed by the platform or custom.
data[].updatedAtbodystring (date-time)UpdatedAt is when it last changed.
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y users roles list <id>

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page