You can remove a user from a group with the removeUserFromGroup method.
Permission to run the request: Account Owner, Administrator, Organization Administrator.
|credentials (required)||credentials||Read the description of the Credentials object.|
|groupId (required)||string||ID of the group, from which you want to delete the specified user.|
|userId (required)||string||ID of the user, whom you want to delete from the specified group.|
After the request has been completed, the system returns an object with the following properties:
|success||bool||True, if a given user has been removed from the group.|
|Unknown user||The specified user hasn't been found.|
|Unknown group||The specified group hasn't been found.|
|Permission Denied||You do to have permission to edit the specified group info.|
|User not a group's member||A given user does not belong to the specified group.|
|Wrong parameters||The system failed to process the request, because it did not contain all necessary parameters.|