Business Central: Hiding Cost and Margin From Sales Without Breaking Order Entry
Why taking SUPER away stops posting, and the permission sets, indirect permissions and small AL extension that keep purchase prices and margin away from salespeople.
Removing SUPER breaks order entry because Business Central reads cost data in code you never see: item availability, sales statistics, shipping and invoice posting all read tables such as Item Ledger Entry and Value Entry. A salesperson without access to them cannot post. The workable approach is to build the sales permission set from recorded tasks with the permission recorder, grant indirect permissions on the cost tables so code can read them while people cannot open them, filter purchase price lines out with a security filter, hide cost and profit fields through profile customisation or a small AL page extension, and test with real users. When margin must stay secret, the AL extension is the right answer.
Why does removing SUPER from salespeople break order entry and posting?
Because the pages salespeople use are not the only tables they touch. When a salesperson checks availability, the system reads item ledger entries. When they open statistics, it calculates cost and profit from value entries. When they ship and invoice, the posting routine reads and writes item ledger entries, value entries and cost adjustment tables on their behalf. Strip those tables from the permission set and the first shipment fails with a message that the user does not have permission to read a table they have never heard of.
That is why the quick fix, a hand-made permission set that only lists the sales pages, always fails, and why so many companies quietly give SUPER back. The solution is not fewer permissions on the cost tables. It is the right kind of permission: indirect access, which lets code read the table during a process while the user cannot open it as a list.
Where do salespeople see cost and margin in Business Central today?
In more places than the sales line. Before designing anything, check each of these with a salesperson's eyes. The table is the usual list; your own extensions and reports may add more.
| Where | What it shows | How it is usually closed |
|---|---|---|
| Sales quote and order lines | Unit cost and, where shown, profit on the line | Field hidden by profile customisation or an AL page extension |
| Statistics on quotes, orders and invoices | Cost, profit and profit percentage for the document | Statistics action hidden or replaced for sales roles through AL |
| Item card and item list | Unit cost, last direct cost, profit percentage | Fields hidden; the item table itself stays readable because sales need it |
| Purchase price lines | Vendor prices and discounts | Security filter on price list lines so sales read sales prices only |
| Item ledger and value entries | Cost amounts per transaction | Indirect permission: posting reads them, the user cannot open them |
| Reports and Excel export | Whatever the report or page includes | Report permissions reviewed and tested with a sales user |
How do you build a sales permission set that hides cost without breaking posting?
Follow the same seven steps whether you run a handful of salespeople or several sales teams across companies. The order matters: record first, so the permission set reflects what the sales process really reads, then restrict, then test with the people who will live with it.
| Step | What to do |
|---|---|
| 1. List what sales must not see | Write down every field and page that shows cost or margin to a salesperson: unit cost and profit on sales lines, the cost and profit figures on the statistics pages, the item card cost fields, purchase price lines, item ledger and value entries. Agree the list with finance before anyone touches permissions. |
| 2. Record the real sales tasks in a sandbox | Copy production to a sandbox, open a new permission set, start the permission recorder and have a salesperson run their actual day: create a quote, convert it to an order, check availability, ship, invoice, issue a credit memo. Stop recording and keep the generated lines as the starting point. |
| 3. Build the sales permission set from the recording | Keep direct read, insert, modify and delete where sales enter data, and change the cost tables (Item Ledger Entry, Value Entry and the related cost and adjustment tables the recording found) to indirect permissions, so posting code can read them but the user cannot open those pages. |
| 4. Filter purchase prices out | Add a security filter on the price list lines so the sales permission set reads sales prices only, and check that price calculation on the sales line still finds the right price for each customer. |
| 5. Hide cost and profit fields on the sales pages | For presentation, hide the fields through profile customisation on the sales role and disable personalisation for that profile. Where the figures must not reach sales at all, use a small AL page extension that hides the fields and statistics actions unless the user is set up to see cost. |
| 6. Remove SUPER and assign the new set | Assign the new permission set, with the standard sets the role needs, to the sales users or their security group, and remove SUPER from everyone who is not an administrator. |
| 7. Test with real sales users before go-live | Have two or three salespeople run their whole day in the sandbox under the new set: order entry, availability, shipping, invoicing, returns, reports and Excel export. Fix every permission error they hit, record the result, and repeat the test after each major update. |
Is page customisation enough, or do you need an AL extension?
Standard Business Central has no field-level security. Permissions work on objects and, with security filters, on records, not on single fields. Hiding a field through profile customisation changes what the page shows; the data is still in the table the user can read. Profile customisation with personalisation disabled is enough when the aim is a clean sales screen and nobody is actively looking for the numbers.
A small AL extension is the right answer when the margin must stay secret: for example when salespeople leave for competitors, when agents or distributors log in, or when the auditor has raised it. The extension hides the cost and profit fields and the statistics actions on the sales pages unless the user is set up to see cost, and can offer a sales-only statistics page that shows totals without cost. It is a few objects, it lives in source control, and it has to be tested on each major update like any other extension. Our AL development service builds and maintains this kind of extension.
- Profile customisation is enough: the goal is a tidy screen, sales users are trusted, and nobody exports data.
- An AL extension is needed: margin is commercially sensitive, external users log in, or an audit finding requires a control rather than a layout.
- A redesign is needed: sales also need a guided margin floor, such as a minimum price check, which belongs in an approval rule or extension rather than in permissions.
Where can cost data still reach a salesperson after the fields are hidden?
Through every route that does not use the page you customised. Test each of them with a real sales user, not with an administrator account, because administrators see everything and prove nothing.
- Other pages on the same table, including lists opened from lookups and drill-downs.
- Reports that print cost or profit, and saved views or analysis views built on the cost tables.
- Excel export and Edit in Excel from pages the user can open.
- APIs, web services and Power BI reports that run under a user or service account with wider rights.
- Search and Copilot features, which work from the data the user is permitted to read rather than from the page layout.
Who should build and maintain the permission model, and what does Solzet do?
Permissions are a finance control, not a one-off IT task, so one owner should hold the list of roles, permission sets and hidden fields and re-test them after every major update. Solzet sets this up as part of a Business Central implementation or as a stand-alone piece of work on a live system: we record the sales, purchasing and finance tasks, build the permission sets with indirect permissions and security filters, write the AL page extension where the margin has to stay secret, run the tests with your users and document the result. If extensions from several vendors are already installed, the regression routine on Business Central extension conflicts after updates covers how we keep them working through each update.
If the real question is whether a Microsoft ERP is the right home for your sales process at all, a custom CRM is the option for buyers who would rather not carry Microsoft licensing on the sales side. We recommend the right solution: Dynamics 365 (Customer Engagement, Business Central or Finance and Operations), Power Platform, or a custom-built CRM. One team for CRM, ERP and the integration between them.
What do people ask us?
Why does Business Central posting fail when I remove the SUPER permission set from salespeople?
Because shipping, invoicing, availability checks and statistics read tables such as Item Ledger Entry and Value Entry in code. A user with no permission on those tables cannot run the process. Give indirect permissions on them instead, so the code can read them while the user cannot open them.
Can Business Central hide a single field like unit cost with permissions?
No. Standard Business Central has no field-level security: permissions apply to objects and, through security filters, to records. A field is hidden through profile customisation, which is cosmetic, or through an AL page extension that hides it unless the user is set up to see cost.
How do I hide purchase prices from salespeople in Business Central?
Add a security filter on the price list lines in the sales permission set so sales users read sales prices only, hide the item cost fields on the pages they use, and test that price calculation on sales lines still finds the right customer price.
What is the permission recorder in Business Central used for?
It records every table a user touches while performing a task and writes those permissions into a permission set. Run it in a sandbox while a salesperson performs real quotes, orders, shipments and invoices, then restrict the result instead of guessing the list.
What does an indirect permission mean in Business Central?
An indirect permission lets the system read or write a table while running a process the user is allowed to run, such as posting, without letting the user open that table directly. It is how sales can post documents that update cost tables they cannot see.
When is an AL extension needed to hide margin from sales?
When the margin is commercially sensitive, when external users such as agents log in, or when an audit finding requires a real control. The extension hides cost and profit fields and statistics actions for sales roles and is maintained in source control.
Where should you go next?
Business Central implementation
The service line: implementation, permissions, extensions, migration and support.
Business Central AL development
AL extensions, Marketplace apps and per-tenant extensions built and maintained.
Extension conflicts after updates
Isolating the extension that breaks posting after a Business Central update.
Chart of accounts and dimensions
Designing the ledger that cost and margin reporting depends on.
Which solution is right for your business?
Tell us what you need. A senior consultant replies within one business day with a recommendation (Customer Engagement, Business Central, Finance and Operations, Power Platform or a custom-built CRM), not a sales script.