How to give the visibility of comment to multiple users?

Hai all, I like to add comment in task after some action is performed. I refer the below link and did that already using an rest api call.

Now my problem is i need to add 2 or more groups in the place of visibility value. How can i give comment visibility to two or more groups?

Thanks in advance…