security filter and flowfield
Belias
Member Posts: 2,998
Hi everyone,
I have a problem about a flowfield and security filters (example below):
- I have balance field from an item card that sums up the "item ledger entry".quantity field.
- This flowfield is flowfiltered by "location filter"
- My security filter permission says that the user cannot read item ledger entries with location = 'XXX'
So far, so good...but when the user tries to access the item card, he receives the well known permission error on the item ledger entry.
I found this hotfix
https://mbs2.microsoft.com/Knowledgebase/KBDisplay.aspx?scid=kb;EN-US;2695145
but it states that the client gets disconnected, which is not my case, because we just receive an error.
NAV2009R2 build 33154
I have a problem about a flowfield and security filters (example below):
- I have balance field from an item card that sums up the "item ledger entry".quantity field.
- This flowfield is flowfiltered by "location filter"
- My security filter permission says that the user cannot read item ledger entries with location = 'XXX'
So far, so good...but when the user tries to access the item card, he receives the well known permission error on the item ledger entry.
I found this hotfix
https://mbs2.microsoft.com/Knowledgebase/KBDisplay.aspx?scid=kb;EN-US;2695145
but it states that the client gets disconnected, which is not my case, because we just receive an error.
NAV2009R2 build 33154
0
Comments
-
I think that this is biggest problem of security filters. You need to try to add security filter to Item table, which will filter "Location Filter" to same locations as you have on the Item Ledger Entries. I think that FlowFields are not automatically filtering the base table to security filters and you need to do that.
Good news is, that Security filters are refactored in NAV 2013 and it looks like they are beginning to be usable...0 -
nah, it doesn't work unfortunately.
I also tried to simplify the case, by removing the flowfilter, but it errors out, no matter what.
E.g.:
My tableA has flowfield on TableB.Quantity where TableA.Field1 = TableB.Field1 and TableA.Field2 = TableB.Field2
Nor Field1 and Field2 are fields in a security filter0 -
Hi,
A possible solution/workaround is to use indirect permissions. You will have to be aware though that this will sum up all the items in the related table ignoring the security filter.
In your example it could be done by letting TableA give indirect read permissions to TableB and create a role giving indirect read permissions to TableB and then assign that role to the restricted user. It can also be done on a form that is based on TableA, that form could give indirect read permission to TableB.
This behavior is changed in NAV 2013 where flowfields will adhere to security filters. In a setup where you have a page based on TableA the restricted user will be able to launch the page and the calculated sum will be only on the related items that the user has access to.
Regards
Claus Jakobsen
Senior Software Developer
Dynamics NAV Server
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.Regards
Claus Jakobsen
Senior Software Developer
Dynamics NAV Server
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.0 -
Have you tried to add another Role to the User that contains indirect read permission to Item ledger Entry table? - It should work.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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
