Options to mute a specific user from local client

I am writing an application which integrates Jitsi Meet API. I need the following capability, and I need to know how to accomplish this in Jitsi Meet API

Some rules in our application require that specific users cannot see or communicate with other users. I need the ability to, from a given users perspective, disable video or audio of users that the rules specify you’re not allowed to see or hear at different stages in the application.

For users A,B,C,D
A and C cannot hear or see each other
B and D cannot hear or see each other
A should hear and see B and D
B should hear and see A and C
C should hear and see B and D
D should hear and see A and C

I would have expected that something like this is already supported.

api.executeCommand('localMute', userid)
api.executeCommand('setVolume', {user: userid, volume:0})
api.executeCommand('toggleVideo', userid)

Also:
User is abusing the mic, and I want to mute them from my perspective, but am not a moderator and don’t have permission or cause to disable audio for everyone

User is abusing video, and I want to close the video from my perspective, but I’m not a moderator and don’t have permission or cause to disable video for everyone