Skip to main content
Community site session details

Community site session details

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

Security Filters - Business Central

(3) ShareShare
ReportReport
Posted on by 6
I want to include a security filter for the purchase line table. With the filter, user should be able to access a specific list of items and specific set of GL accounts.
 
I attempted to achieve this by including both items and GL accounts in security filter in the same permission set and different permission sets. With both the approaches, when user selects items in purchase lines, system shows an error "A security filter has been applied to table Purchase Line. You cannot access records that are outside this filter".
 
Is it possible to have a security filter for both items and GL accounts at the same time and how?
  • Suggested answer
    YUN ZHU Profile Picture
    86,134 Super User 2025 Season 1 on at
    Security Filters - Business Central
    Or you could consider customizing it, so you can add some default filters.
    More details: Dynamics 365 Business Central: How to make some filters mandatory on the list page (users can not change or remove)
     
    Thanks.
    ZHU
  • Gerardo Rentería García Profile Picture
    20,957 Most Valuable Professional on at
    Security Filters - Business Central

    Hi, good day
    I hope this can help you, and give you some hints.

    Hide Confidential Records with Security in Business Central - Sharing The Righter Way - Cynthiapriebe.com

    Best Regards
    Gerardo

  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    13,777 Moderator on at
    Security Filters - Business Central
    In your case, don't apply it to the Purchase Line. Apply the security filter to the Item and G/L Accounts table. However, this will make the users only able to see the filtered Item and G/L Accounts on all areas (not just purchase).
  • Suggested answer
    Mansi Soni Profile Picture
    5,725 on at
    Security Filters - Business Central

    Hello, In Business Central, security filters can apply to specific fields in a table and combine conditions using AND logic. So, if you try to apply filters for both Items and G/L Accounts on the Purchase Line table, the system expects a single record to match both conditions at the same time. But in reality, a purchase line is either for an item or for a G/L account - not both - so this setup doesn’t work and leads to that error you're seeing.

    To handle this, the best approach is to create separate permission sets: one that filters items and another that filters G/L accounts. Then, assign them based on what the user actually needs access to. Unfortunately, Business Central doesn’t support OR logic in security filters, so combining both filters in one set won’t work.

    Hope this will help you to resolve it!

    Regards,
    Mansi Soni

  • Suggested answer
    Mustafa Omerbegović Profile Picture
    1,429 Super User 2025 Season 1 on at
    Security Filters - Business Central
    Hello,

    It may be a better option to set a security filter on the Items and Chart of Accounts tables, not on the purchase line. If you exclude items from the item table on the permission set, then the users will not be able to see them when they want to populate the purchase line.
     
    I have the same setup for Vendor. The client wants to filter out every vendor that starts with 3* for some users. Works great.
     
    Greetings, Mustafa

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

News and Announcements

Now Available: 2025 Release Wave 2

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans