Clerk logo

Workflow template

Tag a new Clerk user for onboarding

Mark newly created Clerk users for onboarding. A signed user.created event merges fasthook_onboarding: new into that user’s public metadata, then reads the updated user back.

How it works

From a new Clerk user to an onboarding marker

1 Trigger · 2 Actions
Clerk1 · Trigger

Clerk user created

Receive the native user.created event from the Clerk instance connected to your webhook endpoint.

Clerk2 · Action

Merge onboarding tag

Use the event’s user ID to deep-merge fasthook_onboarding: new into public_metadata. Other metadata is preserved by the merge.

Clerk3 · Action

Read the updated user

Retrieve the same user after the metadata update so the workflow output contains the resulting user record.

The result

A public onboarding marker on the new user

The workflow changes Clerk metadata. It does not send a welcome email, create an external task or grant the user permissions.

Example metadata added to a new user

{ "public_metadata": { "fasthook_onboarding": "new" } }

This shows the prepared metadata patch, not the complete user response. Existing metadata is merged, and the final action reads the user back.

Before activation

Set up your workflow

  1. Connect the same Clerk instance

    Connect Clerk and select the same instance for the trigger and both Actions. A user ID from a different instance cannot identify the intended user.

  2. Configure the signed user event

    Copy the account’s FastHook endpoint into Clerk Configure → Developers → Webhooks and select user.created. Save that endpoint’s Svix Signing Secret in the FastHook connected account.

  3. Review the marker and create a test user

    Check the Merge onboarding tag metadata field and value before activation. Activate, create a fictional user in that instance, and inspect its public metadata and the final read-user output.

Details and limitations
  • Public metadata is visible to your frontend. Choose a non-secret onboarding marker. The example grants no permissions and should not be treated as an authorization decision. The merge overwrites the same metadata key if it already exists.

  • Creation-only onboarding. Existing users are not imported. The resulting user.updated event does not retrigger this user.created workflow. Repeated delivery merges the same marker value rather than advancing an onboarding sequence.

  • Manage the remote endpoint in Clerk. Pausing FastHook stops local delivery but does not disable the dedicated Clerk endpoint. Disable it in Clerk when finished. Retain unrelated endpoints used by other workflows.

Questions about this template

Does this replace all existing user metadata?

No. The action deep-merges the provided public_metadata into the existing metadata. It sets fasthook_onboarding to new, replacing that key’s prior value if one exists.

Will the metadata update trigger an endless loop?

No. This workflow listens for user.created. Its metadata write can produce user.updated, which is not the selected trigger event.

Can I use this to grant a role or store a secret?

The prepared marker grants no permissions. It is public metadata, so use it for non-secret application state and review any separate authorization logic yourself.

Will it tag existing users or send a welcome email?

No. It handles newly received user.created events, merges the marker and reads the user back. There is no historical import or email action in this template.

Explore connected apps

App integrations