mibuso.com

Microsoft Business Solutions online community
It is currently Thu May 23, 2013 12:53 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: security filter and flowfield
PostPosted: Mon Jun 25, 2012 12:45 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Mon Dec 11, 2006 10:34 am
Posts: 2863
Location: Bergamo
Country: Italy (it)
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

_________________
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog


Top
 Profile  
 
 Post subject: Re: security filter and flowfield
PostPosted: Mon Jun 25, 2012 1:21 pm 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Thu Oct 16, 2003 8:50 am
Posts: 12265
Location: Brno
Country: Czech Republic (cz)
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...

_________________
Kamil Sacek
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.


Top
 Profile E-mail WWW  
 
 Post subject: Re: security filter and flowfield
PostPosted: Mon Jun 25, 2012 5:00 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Mon Dec 11, 2006 10:34 am
Posts: 2863
Location: Bergamo
Country: Italy (it)
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 filter

_________________
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog


Top
 Profile  
 
 Post subject: Re: security filter and flowfield
PostPosted: Tue Jun 26, 2012 3:22 pm 
Offline
Microsoft employee

Joined: Tue Sep 07, 2010 11:03 am
Posts: 4
Country: Denmark (dk)
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.


Top
 Profile E-mail  
 
 Post subject: Re: security filter and flowfield
PostPosted: Fri Jun 29, 2012 11:50 am 
Offline

Joined: Tue May 03, 2005 2:36 pm
Posts: 59
Country: Sweden (se)
Have you tried to add another Role to the User that contains indirect read permission to Item ledger Entry table? - It should work.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Fred Clever, Majestic-12 [Bot], mihail_kolev and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: