Page 1 of 1

Multi Tenancy

Posted: Tue May 31, 2016 3:43 pm
by jcrick

Hi
What is the best way to implement multi-tenancy in ASP Net Maker?

Thanks, Jerry


Re: Multi Tenancy

Posted: Wed Jun 01, 2016 10:15 am
by motfs

multi-tenancy

If you want to handle different account/customer to access database, you may use User Level Security or User ID Security. See Security Settings -> User ID Security/User Level Security in help file for more details


Re: Multi Tenancy

Posted: Wed Jun 01, 2016 11:51 pm
by jcrick

I understand table and record level security but the implementation is not at all clear.

In my scenario I will create a Customer table with an ID.

All other tables will include the CustomerID.

A user will register as an employee of exactly 1 Customer.

That user must only be able to see records where the CustomerID is the same as the employee's CustomerID.

I just cannot see how this is implemented - any thoughts please?

Many thanks, Jerry


Re: Multi Tenancy

Posted: Thu Jun 02, 2016 11:53 am
by motfs

You can view this topic link for more info:
http://www.hkvforums.com/viewtopic.php?f=4&t=36121


Prevent employee seeing employee records

Posted: Mon Jun 06, 2016 12:25 am
by jcrick

Hi

I am using User ID security to make sure users only see data related to their own company, which works fine. But how do I stop them from seeing employee data for employees in their own company?

I think I need to add some extra custom security checks?

Many thanks, Jerry


Re: Multi Tenancy

Posted: Mon Jun 06, 2016 12:29 am
by jcrick

This is now working.

The solution was to use User ID security, make sure User level security is disabled, make sure in Advanced Security \ User ID that all 'Allow View All' tickboxes are unticked.

Thanks, Jerry