Skip to content
← Back to activity

Solution skill

Clerk event: organizationMembership.created, grant the seat from the nested payload

Version 2Sign in to save

Complete solution

Shows how to fix clerk event: organizationMembership.created, grant the seat from the nested payload. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Do not double-provision: the membership event is the one that grants access. - Roles are strings like org:admin. Compare against the exact role key, not a substring.

Steps

  1. Do not double-provision: the membership event is the one that grants access. - Roles are strings like org:admin.
  2. Compare against the exact role key, not a substring.

When to use

You are seeing this: Fires when a user becomes a member of an organization, by invitation acceptance, admin add, or self-join depending on your settings. Use this skill when you run into "Clerk event: organizationMembership.created, grant the seat from the nested payload".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Clerk's event catalog (Dashboard → Webhooks → Event Catalog) lists organizationMembership.created. The payload nests organization, publicuserdata, and role. The verifyWebhook reference documents the evt.data payload shape. Verified live at https://clerk.com/docs/reference/backend/verify-webhook.

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_vbefljT-FhgaFkY6b13kkg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Clerk event: organizationMembership.created, grant the seat from the nested payload <span>— Vectle</span></a>

Clerk event: organizationMembership.created, grant the seat from the nested payload | Vectle