Record level security in CSIDE dbs

Theo_Kersten
Member Posts: 35
Can anyone give us some advise for filtering records in a CSIDE dbs, when we want to restrict some users on reading a few items. Do we need to filter in all forms and reports, or is there somehow a possibility to build something on table-level (like SQL-security filters)?
0
Comments
-
When setting up security roles if you drill down to the permissions you can set security filters on individual fields eg <> Item A..Z
Depending how you want this applied using the standard method should do.
Depending upon your version the strengthing security guide should be enough to help0 -
I think Theo refers to a Native Database, in which case ,if I remember correctly, the security permissions don't apply. If you can't use the security filters you will have to implement them yourself with code.
Form example:
record.FILTERGROUP(2);
record.SETRANGE(...);
record.SETRANGE(...);
...
record.FILTERGROUP(0);
The filters between the two FILTERGROUP commands will not be removed by the user...0 -
kapamarou wrote:I think Theo refers to a Native Database, in which case ,if I remember correctly, the security permissions don't apply. If you can't use the security filters you will have to implement them yourself with code.
Form example:
record.FILTERGROUP(2);
record.SETRANGE(...);
record.SETRANGE(...);
...
record.FILTERGROUP(0);
The filters between the two FILTERGROUP commands will not be removed by the user...
1 Remark : best use filtergroup 10 and up. filtergroups 1 to 6 are reserved. Best leave some extra for the future and start from filtergroup 10.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Indeed I referred to a Native Dbs.
But the conclusion is that we need to build groupfilters in every form and report where the item-table is used (there is not some possibility for filtering on table-level)0 -
Theo Kersten wrote:Indeed I referred to a Native Dbs.
But the conclusion is that we need to build groupfilters in every form and report where the item-table is used (there is not some possibility for filtering on table-level)
I recommend creating a function in the table that puts the filters. This way you can just call the function in each object. And if you need to change some code, just do it in the function and everywhere you use it, it is ok.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions