Remove User From All Groups

Use this API to remove user from all groups.
API supported by both application admin and application user.

❗️

Warning:

API will remove User from all Private, Public and Open Groups.

Parameter Description:

Parameter

Required

Description

userId

Yes

user unique identifier

📘

Note:

In case of Application Bot calling the API, Of-User-Id header is required. Of-User-Id is the userId of the user on behalf of which application bot wants to leave all the groups.

Language
Authentication
Click Try It! to start a request and see the response here!