web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

How to change Security Filter Modes

(0) ShareShare
ReportReport
Posted on by 250

Hi all, 

In my company we use security filters applied to tables 23, 25 and 380 since NAV 2009. Recently, we upgraded to NAV 2016 and then to NAV 2017. In NAV 2009 we didn't have any problems. But now, the users are getting error messages whenever they enter a vendor card. The error message says "A security filter has been applied to table Detailed Vendor Ledg. Entry. You cannot access records that are outside of this filter.", and when they click on ok they can continue working. It also appears when they pull a Vendor No. into a purchase order, for example. From what I read, the problem has to do with the calculation of flowfields that use table 380 and it seems that if I change SecurityFiltering Property = Filtered it will work. But I do not know where I can do that for I did not find this property in the table design.  

Is it only possible to specify the SecurityFiltering property in C/AL code? If so, where do I add it? 

Thanks in advance. 

Regards, 

Helena

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    90,354 Super User 2025 Season 2 on at
    RE: How to change Security Filter Modes

    Hi, hope the following will help.

    https://yzhums.com/10133/

    Thanks.

    ZHU

  • AntonisK Profile Picture
    238 on at
    RE: How to change Security Filter Modes

    Helena Nunes , , i came across today to the same exact problem that Helena had.

    Do you remember where did you changed the security filter so that the code will work properly?

  • Helena Nunes Profile Picture
    250 on at
    RE: How to change Security Filter Modes

    Hi Rob,

    Yes, I agree with your answer. The issue is the Security Filtering property. I just did not know where to change it.  

    Gladly, our NAV partner also achieved recently the solution for our case, that can be made both ways: as you showed or changing the code as in:

    SecurityFiltering.png

    Thank you.

    Helena

  • Verified answer
    Rob F. Profile Picture
    487 on at
    RE: How to change Security Filter Modes

    Hi Helena,

    We are running NAV 2013 and have the same issue.  The SecurityFiltering property is attached to the individual variables which reference the secured tables, as used inside the code of each individual object (Table, Page, Codeunit, etc.).  So you would need to:

    • identify the objects which contain these variables
    • open the objects in Design mode
    • go to the Variables list
    • select the relevant variable and open its individual properties where you will find the SecurityFiltering property  

    For example, we use security filters for the G/L Entry table and so all objects we use that reference it, including in Codeunit 90 Purch.-Post, our NAV partner set the the SecurityFiltering property of global variable GLEntry to "Ignored" (for NAV 2013, it may be a different setting for other versions).  Here are screenshots.

    8512.Capture2.JPG

    8512.Capture2.JPG

    Rob

  • Helena Nunes Profile Picture
    250 on at
    RE: How to change Security Filter Modes

    Thanks for your reply. I checked all the security filters applied for the users again. The tabledata objects that I set up with security filters are included only in the permission role I created for this purpose. On the others, pre-existing ones, I deleted all permissions to these tables, except on SUPER roles.  

  • Maneesha Profile Picture
    5,891 on at
    RE: How to change Security Filter Modes

    check whether you have applied security filter and as well as given permission to those users ,

  • Helena Nunes Profile Picture
    250 on at
    RE: How to change Security Filter Modes

    Thank you for your reply but in this case the suggested articles do not help. They refer to field or table permissions but my issue is with record-level security filters set to object type = Table Data in permission sets. Example: some users cannot read a vendor and nothing related to that vendor but can read and post to all the other vendors.

    The security filters are applied and the users do not see this vendor but, when they enter another vendor card, they get the error message although they hit ok and continue working. I'm sure it has to do on how the flowfields are calculated. It seems as if the security filter is not applied and all the records are selected.

    Thanks again.    

  • Marcellus Profile Picture
    2,735 on at
    RE: How to change Security Filter Modes

    Hi Helena,

    You can use the Access By Permission Property. Check this MSDN article: How to: Remove UI Elements Using the AccessByPermission Property and this one: Access By Permission

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans