I want to make my reports obey the rules for Organizations and groups. E.g. I have 3 organizations, each of which has 20 or so machine groups within. I want my queries to always respect the currently selected organization and machine group(s), which the user would first have to select, or perhaps would be hard coded.
In my case, I'd want my queries to return results for machines that are within organization1 only, and ignore all other organizations. How is this possible? I gather it's just a tweak to the SQL to filter on another parameter somewhere?