> ## Documentation Index
> Fetch the complete documentation index at: https://www.cometchat.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Transfer Group Ownership

> Transfer CometChat group ownership to another member in React Native apps before the current owner leaves the group.

> [accordion] AI Integration Quick Reference
>
> | Field | Value |
> | - | - |
> | Package | `@cometchat/chat-sdk-react-native` |
> | Import | `import { CometChat } from "@cometchat/chat-sdk-react-native";` |
> | Key Methods | `transferGroupOwnership()` |
> | Prerequisites | SDK initialized via [`CometChat.init()`](https://www.cometchat.com/docs/sdk/react-native/setup-sdk) and a logged-in user via [`CometChat.login()`](https://www.cometchat.com/docs/sdk/react-native/authentication-overview) |
> | Primary output | `Promise<string>` — the new owner's UID; rejects with `CometChatException` |
> | Constraints | Owner-only, and the target must already be a member. The former owner stays in the group as an admin. |
> | Related | [Change Member Scope](https://www.cometchat.com/docs/sdk/react-native/group-change-member-scope.md) · [Leave a Group](https://www.cometchat.com/docs/sdk/react-native/leave-group.md) · [Delete a Group](https://www.cometchat.com/docs/sdk/react-native/delete-group.md) |
> | Full reference | [`GroupMember`](https://www.cometchat.com/docs/sdk/reference/entities#groupmember) · [`Group`](https://www.cometchat.com/docs/sdk/reference/entities#group) · [`CometChatException`](https://www.cometchat.com/docs/sdk/reference/auxiliary#cometchatexception) |
>
> ```javascript theme={null}
> // Transfer group ownership
> await CometChat.transferGroupOwnership("GUID", "NEW_OWNER_UID");
> ```
>
> **Note:** Only the current group owner can transfer ownership. The owner must transfer ownership before leaving the group.

Transfer ownership of a group to another member. Only the current owner can do this, and since owners cannot leave their group, you must transfer ownership first if you want to leave. See [Leave Group](https://www.cometchat.com/docs/sdk/react-native/leave-group.md).

## Transfer Ownership

Use `transferGroupOwnership()` to transfer ownership to another group member.

> [tab] TypeScript
>
> ```typescript theme={null}
> let GUID: string = "GUID";
> let UID: string = "UID";
> CometChat.transferGroupOwnership(GUID, UID).then(
>   (ownershipTransferred: string) => {
>       console.log("Successfully transferred ownership of the group.");
>   }, error => {
>       console.log("Could not transfer ownership of the group: ", error);
>   }
> );
> ```

> [tab] JavaScript
>
> ```javascript theme={null}
> let GUID = "GUID";
> let UID = "UID";
> CometChat.transferGroupOwnership(GUID, UID).then(
>   () => {
>       console.log("Successfully transferred ownership of the group.");
>   }, error => {
>       console.log("Could not transfer ownership of the group: ", error);
>   }
> )
> ```

| Parameter | Description |
| - | - |
| `GUID` | The GUID of the group |
| `UID` | The UID of the member to become the new owner |

On success, the method resolves with a success message string confirming the operation. The new owner gets admin scope and the previous owner becomes a participant.

***

## Next Steps

> [card] [Leave Group](https://www.cometchat.com/docs/sdk/react-native/leave-group.md)
>
> Leave a group after transferring ownership

> [card] [Change Member Scope](https://www.cometchat.com/docs/sdk/react-native/group-change-member-scope.md)
>
> Promote or demote group members

> [card] [Kick & Ban Members](https://www.cometchat.com/docs/sdk/react-native/group-kick-ban-members.md)
>
> Remove or restrict members from a group

> [card] [Delete a Group](https://www.cometchat.com/docs/sdk/react-native/delete-group.md)
>
> Permanently delete a group


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.