Report : Get filtered options in report's global filter


I built a script report and I wish to make a global filter that would allow the user to view the records which has certain employee. But I want the filter to only display those employee ID’s which have a certain role say “Sales Manager”. How to do this via JS ?

Set the options in onload

can we do this from JS itself ?

This is in js only. Can you post your js file code.
If you mean getting the list of Employees in “Sales Manager” role, I think it is possible only though server side call.