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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Issues Using Security Filters on Bank Accounts for Department‑Based Access

(6) ShareShare
ReportReport
Posted on by 44
Hi everyone,
we’re implementing Security Filters in Business Central to restrict access to Bank Accounts based on the user’s department.
The restriction is applied through the Shortcut Dimension 2 Code, and the visibility filtering itself works as expected.
However, we’re running into a major issue:
When a user tries to add a Bank Account to the Payment Reconciliation Journal, Business Central throws an error because the Security Filter blocks access to the record.
What makes this more complicated is that the error occurs inside the Base App, specifically when standard code performs database operations such as <Rec>.Count() or <Rec>.FindSet() on the Bank Account table.
Because these operations respect the Security Filter, they fail when the user does not have access to all bank accounts.
I tried setting the record to SecurityFilter::Ignored, but the relevant functions do not expose any events or triggers where we could temporarily override or adjust the security filter.

Is there any supported way to bypass or override Security Filters during this specific operation, or are there alternative approaches to achieve department‑based visibility for Bank Accounts without running into this error?

 

Thanks for any response!

 

 

I have the same question (1)
  • Suggested answer
    Pallavi Phade Profile Picture
    4,093 on at
    Namaste @Philipp1804
     
    There is no other standard approach. You have to do it by customization.
     
     
     
    Warm Regards
    Pallavi Phade 
    www.linkedin.com/in/pallaviphade131116
  • Philipp1804 Profile Picture
    44 on at

    Thanks for your answer!
    If I understand you correctly, I have two options:
    1. Create an issue in the GitHub repository for the Base App and request an IntegrationEvent.
    2. Implement my own “security filter” by using FilterGroup 2, for example.

  • Suggested answer
    Alex A Profile Picture
    2,913 on at
    How many different departments need to have access to the different bank accounts and make payments? Or is it just one or two groups within the accounting department (between AR and AP)?
     
    There are other ways to do this without security filters, depending on the details. Using security filters may contine to cause you these and other issues.
  • Suggested answer
    YUN ZHU Profile Picture
    95,720 Super User 2025 Season 2 on at
    Hi, Alternatively, instead of using Security Filters, an error can be thrown when the user selects a bank account that is not associated with the current department.
    However, if a lot of scenes need to be modified, this can be quite time-consuming.
     
    Thanks.
    ZHU

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,664

#2
YUN ZHU Profile Picture

YUN ZHU 960 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans