huudis.account.member_role_changed.v1
Fires when a member's role in a workspace changes (owner, admin, member).
Who receives it: the workspace.
When it fires
When PATCH /v1/iam/users/:id changes role. Setting the role a member already has sends nothing.
Payload
{
"id": "evt_01KPG…",
"type": "huudis.account.member_role_changed.v1",
"accountId": "acc_01KPG40…",
"occurredAt": "2026-05-12T23:30:00.000Z",
"data": {
"accountId": "acc_01KPG40…",
"accountName": "Cafe Sumur",
"userId": "usr_01KPG…",
"userEmail": "recruit@forjio.com",
"userName": "Recruit",
"from": "member",
"to": "admin",
"changedAt": "2026-05-12T23:30:00.000Z",
"changedByUserId": "usr_01KPG30SP…"
},
"metadata": {}
}
from / to are the old and new roles; changedByUserId is the owner or admin who changed it.
Related events
Next
- Users — the workspace's members.