- You could add a user table to your database with a company_id assigned to each user.
- Change all your queries to get the company_id from a join to the user table.
- Assign the user to a custom parameter in the CDE dashboard and pass this parameter to your queries.
Custom Parameter -> Properties -> Javascript code
dashboard.context.user;