SDK v7.x · Last verified March 2026 · iOS · Android · Web · Flutter
Speed run — just the code
Speed run — just the code
Prerequisites: Community channel with at least a few members → Channels & Conversations
Quick Start: Promote a Member to Moderator
Step-by-Step Implementation
Understand built-in roles
| Role | Permissions |
|---|---|
channel-owner | Manage roles, update channel, archive, all moderator permissions |
channel-moderator | Ban/unban members, mute/unmute, delete any message |
| (member — default) | Send messages, react, view members |
The channel creator is automatically assigned
channel-owner. There can only be one owner. To transfer ownership, remove the owner role from yourself and add it to another user.Query members and filter by role
Gate moderation UI behind role checks
Check the current user’s roles before showing ban/mute buttons:
The SDK also enforces permissions server-side — the role check in your UI is purely for UX, not security. Non-moderators receive a permission error if they somehow trigger a moderation action.
Create custom roles (Admin Console)
Beyond the built-in roles, you can define custom roles (e.g.,
vip, verified-seller) with specific permission sets in Admin Console → Roles & Permissions. Custom roles appear in member.roles exactly like built-in ones.→ Custom RolesConnect to Moderation & Analytics
Role events in webhooks
Role events in webhooks
member.roles_added and member.roles_removed webhook events let you sync role changes with your own database or trigger downstream workflows (e.g., granting a user access to a private board after becoming a moderator).→ Webhook EventsAudit log for role changes
Audit log for role changes
All role assignments are logged in Admin Console → Audit Log. Use this to review who granted moderator access and when.
Common Mistakes
Best Practices
Assign moderators before channels go public
Assign moderators before channels go public
Promote at least one moderator immediately after creating a channel, especially for public Community channels. Unmoderated channels fill up with spam within hours of gaining traction.
Use custom roles for tiered benefits
Use custom roles for tiered benefits
Create roles like
vip or premium to give paying users or power members special UI treatment (highlighted names, extended media limits) without granting full moderation powers.Audit role changes regularly
Audit role changes regularly
Review moderator lists quarterly. Former moderators who no longer actively participate should be demoted — stale moderator accounts are a common attack vector.
Next Steps
Chat Moderation
Use your new moderators to ban, mute, and remove content.
Group Chat Path
Full group chat build path where roles and permissions matter most.
Channels & Conversations
Back to channel management fundamentals.