> ## 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 with the Android SDK using GUID and target member UID.

> [accordion] AI Integration Quick Reference
>
> ```kotlin theme={null}
> // Transfer ownership to another member (owner only)
> CometChat.transferGroupOwnership("GUID", "NEW_OWNER_UID", 
>     object : CallbackListener<String>() {
>         override fun onSuccess(message: String) { }
>         override fun onError(e: CometChatException) { }
>     })
> ```
>
> **Important:**
>
> * Only the current owner can transfer ownership
> * The new owner must be an existing group member
> * Original owner becomes a regular admin after transfer
> * Required before owner can leave the group

Use `transferGroupOwnership()` to transfer ownership to another group member. Only the current owner can do this. The owner must transfer ownership before they can leave the group.

> [tab] Java
>
> ```java theme={null}
> String GUID = "cometchat-guid-1";
> String UID = "cometchat-uid-2";
>
> CometChat.transferGroupOwnership(GUID, UID, new CometChat.CallbackListener<String>() {
>   @Override
>   public void onSuccess(String s) {
>     Log.e(TAG, "Transfer group ownership successful");
>   }
>
>   @Override
>   public void onError(CometChatException e) {
>     Log.e(TAG, "Transfer group ownership failed : " + e.getMessage());
>   }
>
> });
> ```

> [tab] Kotlin
>
> ```kotlin theme={null}
> val GUID = "cometchat-guid-1"
> val UID = "cometchat-uid-2"
>
> CometChat.transferGroupOwnership(GUID, UID, object : CallbackListener<String?>() {
>   override fun onSuccess(s: String?) {
>     Log.e(TAG, "Transfer group ownership successful")
>   }
>
>   override fun onError(e: CometChatException) {
>     Log.e(TAG, "Transfer group ownership failed : " + e.message)
>   }
> }) 
> ```

***

## Next Steps

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

> [card] [Change Member Scope](https://www.cometchat.com/docs/sdk/android/v4/group-change-member-scope.md)
>
> Update member roles and permissions

> [card] [Delete Group](https://www.cometchat.com/docs/sdk/android/v4/delete-group.md)
>
> Permanently delete the group instead

> [card] [Retrieve Members](https://www.cometchat.com/docs/sdk/android/v4/retrieve-group-members.md)
>
> View group members to choose new owner


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