Its easier to explain it by the example
- a lot of users
- 2 models (only in this example)
- there could be filters for each model
- some people should not have export to ext format
- some people shouldnt see some columns in some models
So every user can have different privs. First can see only data from one model, second only from another, next cannot export, next should have filter for one of the model, etc
As far as I know to implement this
FIRST I should create following roles
r1. Role with access to the first model
r2. Role with access to the second model
r3. Role without access to some columns of the first model
r4. Role without access to some columns of the second model
r5. Role with filter to the first model
r6. Role with filter to the second model
r7. Role with no access to Export
NEXT I should create a lot of end roles to grant them to end users
1. role included in r1
2. role included in r1 and r5
3. role included in r1 and r5 and r7
4. role included in r2 and r4
5. role included in r2 and r4 and r7
6. role included in r3
7. role included in r3 and r5
8. role included in r3 and r5 and r7
9. role included in r4
10. role included in r4 and r6
11. role included in r4 and r6 and r7
12. role included in r1 and r2
13. role included in r1 and r2 and r7
14. role included in r1 and r2 and r5 and r7
...............
and many others and then assign one role from the second step to each user
It is very complicated. Is there any way to assign some roles from the first step to the end user?
We have about 40 models (probably more) and thousands of users
Or Probably there is another easier way?
PS We autheticate user from Oracle database table (Security Block in repo)