The best way to remove a user from all group channels and add a new member is by using our update a user API: User | Chat Platform API | Sendbird Docs and
by using ‘leave_all_when_deactivated’ parameter
PUT https://api-{application_id}.sendbird.com/v3/users/my-user-id
Update this user ID and send:
{
“user_id”: “my-user-id”,
“is_active”: false,
“leave_all_when_deactivated”: true
}
After receiving a response for this call, you activate this user again:
{
“user_id”: “my-user-id”,
“is_active”: true
}
@BCH Oh, I got your point here. Unfortunately, we do not have any way to do this. We have only for leaving automatically and that’s what I thought initially.