Add Members
Directly add users to communities bypassing approval workflows
Remove Members
Remove members for rule enforcement or community cleanup
Bulk Operations
Efficiently manage multiple members with batch operations
Administrative Control
Complete member lifecycle management for moderators
Member management functions require appropriate moderator permissions. Adding members to private communities automatically grants them access to community content, while removing members revokes all community privileges.
Administrative vs User-Initiated Actions
Understanding the difference between administrative member management and user-initiated actions:Action Type | Who Initiates | Use Cases | Approval Required |
---|---|---|---|
Administrative Add | Moderators/Admins | Staff onboarding, VIP access, bulk imports | No - Direct addition |
User Join | Users themselves | Organic growth, self-service joining | Depends on community settings |
Administrative Remove | Moderators/Admins | Policy violations, cleanup, role changes | No - Immediate removal |
User Leave | Users themselves | Voluntary departure, account management | No - Immediate departure |
Add Members
TheaddMembers()
function allows administrators and moderators to directly add users to a community, bypassing normal join workflows. This is ideal for invitation-only communities, adding staff members, or bulk member management.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
userIds | String[] | Yes | Array of user IDs to add as community members |
communityId | String | Yes | ID of the target community |
Remove Members
TheremoveMembers()
function allows administrators and moderators to remove users from a community. This action immediately revokes all community privileges and access, useful for enforcing community rules or removing inactive members.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
userIds | String[] | Yes | Array of user IDs to remove from the community |
communityId | String | Yes | ID of the target community |
Removing members is immediate and permanent until they are re-added or rejoin. Consider using warnings or temporary restrictions before removing members entirely.