Skip to main content

Documentation Index

Fetch the complete documentation index at: https://cometchat-22654f5b-docs-android-v6-beta2.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

The Group Members API manages the membership of users within a group. Each member is assigned a scope that determines their permissions inside the group.

Key behaviors

  • A maximum of 25 users can be added per API call across all scope arrays (admins, moderators, participants, usersToBan).
  • If the same UID appears in multiple scope arrays, the highest scope applies in the order: admin > moderator > participant.
  • Individual member addition failures do not cause the overall request to fail — check the error objects in the response for per-member status.
  • For groups with more than 300 members, conversations and unread message counts are not updated.

Member scopes

ScopeDefault assignmentPrivileges
adminGroup creatorChange member scopes, add/kick/ban members, update/delete group, send & receive messages & calls
moderatorPromoted by an adminChange scope of participants, kick & ban participants, update group, send & receive messages & calls
participantAll other membersSend & receive messages & calls

How group members connect to other resources

  • Groups — Members belong to a Group, identified by its GUID.
  • Users — Each member is a User, identified by their UID.
  • Banned Users — Members can be banned from a group by admins or moderators.
  • Roles & RBAC — A member’s app-wide Role is checked alongside their group scope. Both must allow an action for it to succeed. See RBAC & SBAC.

Available operations

OperationMethodEndpointDescription
List MembersGET/groups/{guid}/membersRetrieve all members of a group
Add MembersPOST/groups/{guid}/membersAdd users to a group with specified scopes
Change ScopePUT/groups/{guid}/members/{uid}Change a member’s scope within the group
Kick MemberDELETE/groups/{guid}/members/{uid}Remove a member from the group

Group member properties

PropertyTypeDescription
adminsarray of stringsUIDs of users to be added as group admins.
moderatorsarray of stringsUIDs of users to be added as group moderators.
participantsarray of stringsUIDs of users to be added as group participants.
usersToBanarray of stringsUIDs of users to be banned from the group.

Error handling

Error CodeDescription
ERR_GUID_NOT_FOUNDThe specified group does not exist
ERR_UID_NOT_FOUNDThe specified user does not exist
ERR_NOT_A_MEMBERThe user is not a member of this group
ERR_ALREADY_JOINEDThe user is already a member of this group
For the complete list of error codes, see Error Guide. For all system limits (member caps, group thresholds, etc.), see Properties and Constraints.