Kaizen

Bucket Permission Trigger

Trigger workflows when a user is granted permissions to a bucket

The Bucket Permission trigger runs workflows when a user is granted permissions to a bucket. This typically happens when a user accepts a bucket invitation. Use it for welcome workflows, onboarding notifications, or syncing access when someone joins a bucket.

Trigger Type

bucket_permission

When It Fires

The trigger fires when a permission record is created for a user on a bucket (e.g. read, write, or admin). You can filter by:

  • Bucket ID — Only trigger for a specific bucket; leave empty for any bucket.
  • Permission Type — Only trigger for a specific level: read, write, or admin; leave empty for any.
  • Public Trigger — When enabled, the workflow triggers for any bucket permission creation (platform-wide), not just permissions in your buckets. Requires the workflow to be deployed.
  • Cooldown (minutes) — Minimum time between triggers for the same user/bucket combination (0 = no cooldown).
  • Trigger Once Per User/Bucket — Only trigger once per user/bucket (useful for welcome workflows).

Outputs (Reference in Downstream Blocks)

Use <block_id.output_name> to pass trigger data to the next blocks.

OutputTypeDescription
eventIdstringUnique ID of the triggering event
eventTypestringPermission event type (e.g. permission_created)
triggeredAtstringISO timestamp when trigger fired
permissionIdstringID of the created permission record
userIdstringID of user who received the permission
userEmailstringEmail of user who received the permission
usernamestringUsername of user who received the permission
bucketIdstringID of the bucket
bucketNamestringName of the bucket
permissionTypestringType of permission granted (read, write, admin)
createdAtstringISO timestamp when permission was created
viaInvitationbooleanWhether this permission was created via invitation acceptance
invitationIdstringID of the invitation (if created via invitation)

Common Use Cases

Welcome workflow when someone joins a bucket

  1. Add the Bucket Permission trigger (leave bucket empty or set a specific bucket).
  2. Optionally enable Trigger Once Per User/Bucket so each user gets one welcome.
  3. In the next block (e.g. send notification or add to a list), use <bucket_permission_1.userId> and <bucket_permission_1.bucketName> to personalize the message.

Notify only for admin permissions

Set Permission Type to Admin so the workflow runs only when a user is granted admin access to a bucket.

Sync or log permission changes

Use Public Trigger to run a workflow for any bucket permission creation across the workspace. Reference userId, bucketId, and permissionType to sync to an external system or log access.

Referencing Trigger Outputs

# Send welcome message to the user who got access
userId: "<bucket_permission_1.userId>"
bucketName: "<bucket_permission_1.bucketName>"

For triggers, use <block_id.outputName> syntax. The workflow runs in the context of the user who received the permission when the trigger is not public; with Public Trigger, ensure your workflow uses the trigger outputs to identify the user and bucket.

On this page

On this page

Start building today
Trusted by over 60,000 builders.
Build Agentic workflows visually on a drag-and-drop canvas or with natural language.
Get started