How to track number of users currently using the document editor

I have some questions

  1. Should we get the number of users currently using the document editor?
  2. Should we log out users or force close the document editor for a group of users programmatically?

Hello @subbu

Please see following method for Command Service:
https://api.onlyoffice.com/editors/command/info

This methods allows you to disconnect specific users from editing session (please see the description for more details):
https://api.onlyoffice.com/editors/command/drop