huudis.iam.policy_detached.v1

Fires when a policy is detached from a principal (user, group, role, service account).

Who receives it: the workspace whose principal lost the policy.

When it fires

When DELETE /v1/iam/policy-attachments/:id succeeds — one event per attachment.

Payload

{
  "id": "evt_01KPG…",
  "type": "huudis.iam.policy_detached.v1",
  "accountId": "acc_01KPG40…",
  "occurredAt": "2026-05-12T23:30:00.000Z",
  "data": {
    "attachmentId": "pat_01KPG…",
    "policyId": "pol_01KPG…",
    "policyName": "HuudisReadOnly",
    "policyScope": "system",
    "principalType": "group",
    "principalId": "grp_01KPG…",
    "principalName": "Read-only Auditors",
    "accountId": "acc_01KPG40…",
    "attachedAt": "2026-05-01T09:00:00.000Z",
    "detachedByUserId": "usr_01KPG30SP…",
    "detachedAt": "2026-05-12T23:30:00.000Z"
  },
  "metadata": {}
}

principalName is the user's email or the group, role or service account's name.

Next

Huudis Docs · huudis.iam.policy_detached.v1 | Huudis