Complete guide to joining and leaving communities, managing join requests, and handling membership approval 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 |
join()
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.
Parameter | Type | Required | Description |
---|---|---|---|
communityId | String | Yes | Unique identifier of the community to join |
leaveCommunity()
method removes the active user from a community, revoking access to community content and participation privileges.
Parameter | Type | Required | Description |
---|---|---|---|
communityId | String | Yes | Unique identifier of the community to leave |