please select
  • UIKit
  • SDK
  • Server APIs
Chat/
SDK/
React Native/
Group/
SDK
  • Run Demo
  • SDK Integration
  • Initialization
  • Login and Logout
  • Message
    • Message Overview
    • Sending Message
    • Receiving Message
    • Historical Message
    • Forwarding Message
    • Modifying Message
    • Message Inserting
    • Deleting Message
    • Clearing Messages
    • Recalling Message
    • Online Message
    • Read Receipt
    • Querying Message
    • Group @ Message
    • Targeted Group Message
    • Notification Muting
    • Message Extension
  • Group
    • Overview
    • Group Management
    • Group Profile
    • Group Member Management
    • Group Member Profile
    • Custom Group Attribute
    • Community Management
  • User
    • User Profile
    • Friend Management
    • Friend List
    • Blocklist
  • Offline Push
    • Offline Push
  • Local Search
    • Searching for Message
    • Searching for Friend
    • Searching Group
    • Searching for Group Member
  • Signaling
    • Signaling Management
  • Changelog
  • Guideline for Beginners
  • Console Guide
    • Creating and Upgrading an Application
    • Basic Configuration
    • Feature Configuration
    • Account Management
    • Group Management
    • Webhook Configuration
  • Product Introduction
    • Message Management
      • One-to-One Message
      • Message Storage
      • Offline Push
      • Group Message
      • Message Formats
    • Account System
      • Login Authentication
      • Online Status Management
    • Group Related
      • Group System
      • Group Management
    • User Profile and Relationship Chain
      • Profile Management
      • Relationship Chain Management
  • Purchase Guide
    • Billing Overview
    • Pricing
  • Error Codes

Group Member Profile

Feature Description

The methods to manipulate the group member profile are in the TencentImSDKPlugin.v2TIMManager.getGroupManager() core class.


Getting the Profile of a Group Member

You can call getGroupMembersInfo (Details) to get the group member profile. This API supports passing in multiple userID values at a time to batch get group member profiles and therefore improve the network transfer efficiency.
Below is the sample code:
// Get the group member profile
const memberInfos = await groupManager.getGroupMembersInfo("groupID", ["id1"]);


Modifying the Profile of a Group Member

The group owner or admin can call the setGroupMemberInfo API (Details) to modify the group name card (nameCard), custom field (customInfo), and other information of a group member.
Below is the sample code:
// Set the group member profile
groupManager.setGroupMemberInfo("groupID", "userID", "nameCard");