K
karen scheu via AccessMonster.com
I would really appreciate getting any feedback on my design.
I have a requirement for my FE app to restrict certain users from seeing all
data for all divisions. I created some users and assigned them to a secure
group that allows mostly read access on the tables and one or two update
accesses. All users will share these privliges. I created a user table that
contains 3 fields: user_id(this is the login id), alias id (I maintain this
field because 5 users may all have the same data privliges and it will make
my mapping tables easier) menuoptions (determines what options on the menu
the user has access to.
The user table will be kept in BE database along with the mapping tables that
map the user id with the divisions that they are allowed. WHen the
switchboard form is opened, I run a maketable query that joins the master
linked table to the user_division xref table and creates a local table for
that user. ALL subsequent queries access the local table. When the user
closes the FE database, I compact it.
Here are my questions:
1) Is this logic good, or is there a better way?
2) If I need to add a user later on, can I simply add the user, which will
update the security.mda file, then just copy the new security file into the
BE directory where the FE will access when starting up. I am using the
wizard to package this and it may copy the security file to the local machine.
If this is the case, I will have to push the security file down to the user.
Is this correct or is there a better way?
I have a requirement for my FE app to restrict certain users from seeing all
data for all divisions. I created some users and assigned them to a secure
group that allows mostly read access on the tables and one or two update
accesses. All users will share these privliges. I created a user table that
contains 3 fields: user_id(this is the login id), alias id (I maintain this
field because 5 users may all have the same data privliges and it will make
my mapping tables easier) menuoptions (determines what options on the menu
the user has access to.
The user table will be kept in BE database along with the mapping tables that
map the user id with the divisions that they are allowed. WHen the
switchboard form is opened, I run a maketable query that joins the master
linked table to the user_division xref table and creates a local table for
that user. ALL subsequent queries access the local table. When the user
closes the FE database, I compact it.
Here are my questions:
1) Is this logic good, or is there a better way?
2) If I need to add a user later on, can I simply add the user, which will
update the security.mda file, then just copy the new security file into the
BE directory where the FE will access when starting up. I am using the
wizard to package this and it may copy the security file to the local machine.
If this is the case, I will have to push the security file down to the user.
Is this correct or is there a better way?