SDKsReact Native
Transfer group ownership
OpenIM React Native SDK guide for transfer group ownership.
Call transferGroupOwner() to transfer group ownership to another member.
await OpenIMSDK.transferGroupOwner({
groupID: 'group-001',
newOwnerUserID: 'user-002',
});Parameters
| Parameter | Type | Required | Description |
| --- | --- | --- |
| groupID | string | Yes | ID of the target group. |
| newOwnerUserID | string | Yes | User ID of the new group owner. This user must already be a member of the group. |
When the call completes, group ownership is transferred. The member roles of the former and new owners change through OnGroupMemberInfoChanged; see Get group members for event handling.
Was this page helpful?