Skip to main content
Remove members from a group by kicking or banning them. Kicked users can rejoin; banned users cannot until they’re unbanned. Only admins and moderators can perform these actions.

Kick a Group Member

Admins or Moderators can remove a member using kickGroupMember(). The kicked user can rejoin the group later.
The kickGroupMember() takes the following parameters: The kicked user will be no longer part of the group and can not perform any actions in the group, but the kicked user can rejoin the group. On success, the method resolves with a boolean value (true) confirming the operation.

Ban a Group Member

Admins or Moderators can ban a member using banGroupMember(). Unlike kicked users, banned users cannot rejoin until unbanned.
The banGroupMember() method takes the following parameters: The banned user will be no longer part of the group and can not perform any actions in the group. A banned user cannot rejoin the same group without being unbanned. On success, the method resolves with a boolean value (true) confirming the operation.

Unban a Group Member

Admins or Moderators can unban a previously banned member using unbanGroupMember().
The unbanGroupMember() method takes the following parameters Once unbanned, the user can rejoin the group. On success, the method resolves with a boolean value (true) confirming the operation.

Get List of Banned Members for a Group

Use BannedMembersRequestBuilder to fetch banned members of a Group. The GUID must be specified in the constructor.

Set Limit

Sets the number of banned members to fetch per request.

Set Search Keyword

Filters banned members by a search string.
Once configured, call build() to create the request, then fetchNext() to retrieve banned members.
The fetchNext() method returns an array of GroupMember objects representing the banned members of the group.

Real-Time Kick/Ban/Unban Events

Implement these GroupListener methods to receive real-time notifications:
Always remove group listeners when they’re no longer needed (e.g., on component unmount or page navigation). Failing to remove listeners can cause memory leaks and duplicate event handling.

Missed Group Member Kicked/Banned Events

When fetching previous messages, kick/ban/unban actions appear as Action messages (a subclass of BaseMessage). Kicked event: Banned event: Unbanned event:

Next Steps

Add Members

Add new members to a group

Change Member Scope

Promote or demote group members

Retrieve Group Members

Fetch the list of members in a group

Leave a Group

Allow members to leave a group