In order to extend user level controls to the remote end, it is necessary to validate the Remote User accessing the server company data. A Function RemoteUserId evaluates and returns the Remote User Name at the Server to validate based on which appropriate controls can be applied.
Please refer the sample code on the usage of $$RemoteUserId available with Tally.Developer 9 and make necessary changes in your code.