29

When the users set up security filters on permission sets, there are several part in Business Central that will generate an error due to the fact the default value for securityfiltering for variables is validated instead of filtered.

This is described in this learn page:

https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/security/security-filters

Also having validated securityfiltering with security filters applied caused reduced performances.


For example if applying security filters on purchase header and purchase lines, purchase invoice pages cannot be accessed with an error on line "Purch.-Post"(CodeUnit 90).CopyToTempLines line 7 - Base Application by Microsoft


Similar error when opening a Purchase Order for a non restricted record, generate an error on line "Document Totals"(CodeUnit 57).CalculatePurchaseSubPageTotals line 34 - Base Application by Microsoft due to variable have validated securityfiltering.


I understand the default has been set for "compatibility" reasons but many of those errors cannot be bypassed without copying/rewriting a lot of standard code.


The default should be filtered which should prevent most of those errors.

Moreover there is no way to change the securityfiltering.

If the default cannot be changed, there should be a way to change the default for the instance/environment.


Category: Development
STATUS DETAILS
Needs Votes
Ideas Administrator

Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team