Join Communities
Add users to communities with immediate or approval-based joining
Join Request Management
Handle pending requests with user and moderator workflows
Leave Communities
Remove users from communities and revoke access privileges
Community Access Control
Manage different community types and membership requirements
Users automatically become members when joining a community and lose access when leaving. Private communities may require invitations or approval, creating join requests that moderators can approve or reject.
Community Types and Access Control
Understanding community types is essential for implementing proper membership workflows:Community Type | Visibility | Join Behavior | Use Case |
---|---|---|---|
Public (No Approval) | Discoverable | Immediate membership | Open communities, public discussions |
Public (Requires Approval) | Discoverable | Pending approval required | Moderated public communities |
Private & Visible | Discoverable, content hidden | Approval required | Semi-private groups with controlled access |
Private & Hidden | Not discoverable | Invitation/approval only | Exclusive communities, private groups |
Network-Level Membership Settings
Your network can be configured with different membership acceptance modes:- Automatic Membership (default): Users become members immediately when added
- Invitation Acceptance: Users receive invitations and must explicitly accept before joining
Join Community
Thejoin()
method adds the active user as a member of the specified community, enabling access to community content and participation privileges. The joining process varies based on community type and approval requirements.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
communityId | String | Yes | Unique identifier of the community to join |
Join Request Management
For communities requiring approval, join requests provide a workflow for users to request membership and moderators to control access.User Operations
Check Join Request Status
Users can monitor the status of their submitted join requests:Cancel Join Request
Users can cancel pending join requests:Moderator Operations
Get Pending Join Requests
Moderators can retrieve all pending join requests for their communities:Approve/Reject Join Requests
Moderators can approve or reject join requests:Leave Community
TheleaveCommunity()
method removes the active user from a community, revoking access to community content and participation privileges.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
communityId | String | Yes | Unique identifier of the community to leave |
Leaving a community immediately removes access to all community content, posts, and conversations. This action cannot be undone without rejoining.
Best Practices
User Experience: Always provide clear feedback about membership status changes and explain any waiting periods for approval-based communities.
UI/UX Guidelines
- Clear Status Indicators: Show membership status and pending request states
- Action Feedback: Provide immediate feedback for join/leave actions
- Error Handling: Display user-friendly error messages with next steps
- Confirmation Dialogs: Confirm leave actions to prevent accidental departures
Implementation Patterns
- Real-time Updates: Use Live Objects to reflect membership changes immediately
- Optimistic UI: Update UI immediately, rollback on error
- Request Management: Implement proper join request workflows for moderators
- Navigation Logic: Handle post-leave navigation appropriately