About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
When Business Central refuses an action with a message such as "You don't have the following permissions on TableData 50125: Insert", the signed-in user lacks a permission on a table: Read, Insert, Modify or Delete. Open the user's Effective Permissions page, find that table, and read which permission set gives the access, or removes it. Then change the permission set or the assignment, with the narrowest change that fixes the task. One case is different. Microsoft's page on page background tasks shows this exact message when code in a page background task tries to write to the database, because a background task can only read. In that case the fault is in the extension's code, and no permission set fixes it.
What the error means
Microsoft's page on permissions says that the Business Central security system, in combination with the user's license, controls user access to objects in each database or environment, and that for each user you can specify whether they can read, modify or enter data. There are two levels: overall permissions according to the license (the entitlement), and detailed permissions you assign in Business Central through permission sets.
A permission set holds lines for objects. Table Data is one object type, and each line carries five access fields: Read Permission, Insert Permission, Modify Permission, Delete Permission and Execute Permission. Each field holds one of three values:
- Blank: the user can't perform the action on the object.
- Yes: the user can perform the action.
- Indirect: the user can perform the action only through another object they have full access to.
Microsoft's example is codeunit 80, Sales-Post. It modifies table 37, Sales Line. If the user has permission to run the codeunit but no permission to modify Sales Line, Business Central checks the permission, the codeunit "can't complete its tasks, and the user receives an error message". Indirect permission on Sales Line is enough, because the user can then modify it only through the codeunit.
Two further rules matter when you read a result. If a permission is in both an included and an excluded permission set, "the permission is excluded". And the entitlement from the licence can overrule: a higher-ranking value in another set is shown in brackets when the entitlement makes it ineffective.
Business Central can also report the failure as telemetry. Microsoft's page on permission error telemetry lists the event "Permission error shown" with event ID RT0031. Its permissionType dimension says which permission the operation requires and the user lacks (Delete, Execute, Insert, Modify, Read or Undefined), and permissionArea says whether the problem is in the System, Entitlement, Company or Object area.
Likely causes
| Cause | What you see | How to confirm |
|---|---|---|
| The user has no set that covers the table | Many actions fail, not only one | Effective Permissions shows no row for the table |
| The set has the table but not the access level | Reading works, saving fails | The row for the table shows Read but a blank Insert or Modify |
| The access is Indirect and the user reaches the table another way | Works from one page, fails from another | The row shows Indirect, and the failing action does not go through the object that is allowed |
| An exclusion removes the permission | A set looks right but the access is missing | On the Permission Sets page used when editing the set, the Result pane shows the set's Inclusion Status as Partial, or a line of type Excluded |
| The entitlement overrules | The value is shown in brackets | By Permission Set shows the value in brackets and a row of source Entitlement |
| The permission set is assigned for another company | Works in one company, fails in another | The assignment's Company field names a different company |
| The licence's default permissions were changed after the user was created | New users work, older ones fail | License Configuration customisation applies only to users created afterwards |
Prove the cause before changing anything
All steps read only. You need the SECURITY or SUPER permission set to see another user's effective permissions.
- Write down the table and the permission the message names, the action the user was doing, and the company.
- Choose Search (Alt+Q), enter Users, and open the card of the affected user.
- Choose the Effective Permissions action. The Permissions part lists every object the user can access, and you can't edit it there.
- Find the table. A good result is a row with the access level you wrote down in step 1. A bad result is no row, or a blank in that column.
- Select the row. The By Permission Set part shows which sets grant it, the source and type of each set, and the extent of each access type. Look for brackets and for Entitlement rows.
- Open the Permissions Overview page, filter by the object, and read which permission sets include it and which users and security groups hold those sets.
- Look at the user's Permission Sets FactBox and the company on each assignment.
When the message comes from a page background task
If the failing action is a page that runs a background task, the cause may be the task's code. Microsoft's page says the background task codeunit "can only read from the database; not write to the database", and that if code attempts to write, "an error occurs" informing the user that they don't have permission to do the operation on the table. For example: "You don't have the following permissions on TableData 50125: Insert." Changing a permission set does not fix this case, so do not widen any set for it. The page's design is that the task returns its results with SETBACKGROUNDTASKRESULT and the page's OnPageBackgroundTaskCompleted trigger handles them, where it notes "The client user must have the appropriate write permission to cache results in the database". Moving the write there is a developer change to the extension, so pass the message and table number to the extension's developer.
Fix
Choose the fix by what step 5 showed, unless the message comes from a page background task as described above. Prefer the smallest grant that lets the task finish. Microsoft describes SUPER as able to "read, use, update, and delete all data and all application objects in the scope of your license", so it is not a fix for one missing table.
Assign an existing permission set that already holds the access
First save the current state: write down the permission sets currently on the user's card, with each Company value, and the time.
Risk: Assigning a permission set gives the user everything in it, which may be more than the one table. The assignment applies to the company named, or to all companies if the Company field is blank.
On the Users page, open the user, choose Edit, and on the User Permission Sets FastTab add a line with the set. Fill in Company if the set should apply to one company.
Only if you need to back out, so that the card lists the sets you wrote down, remove the line you added.
Risk: Removing the line takes away the access the set gave this user, and the user's action fails again.
On the User Permission Sets FastTab, delete the line you added.
Add the access to a user-defined permission set
Only permission sets of type User-Defined can be edited. Microsoft's note says that changes to a set also apply to every other user who has it.
First save the current state: on the Permission Sets page, select the set and choose Export Permission Sets, which creates an XML file named Export Permission Sets.xml by default. Then write down the current values of the five access fields on the line you will change, and the time.
Risk: Editing a permission set changes the access of every user who holds it, not only the one with the error. Adding Insert or Modify to a table can let those users change data they could only read before.
On the set's Permissions page, add or change the Table Data line for the table. Set the access field the message named. Use Indirect where the task only runs through an object the user is already allowed to use, as in the Sales-Post example. Save, then ask the user to repeat the action.
Only if you need to back out, restore the value you wrote down.
Risk: Restoring the value removes the access you added for every user who holds the set, and their action fails again.
Set the access field on that line back to the value you wrote down.
Entitlement, exclusions and licence defaults
When the cause is an entitlement or an exclusion, the fix is a licensing or design decision, so it is described and not listed as steps. Microsoft says entitlement values overrule other sets when they have a higher ranking, and that an exclusion beats an inclusion. Microsoft also says that customised licence permissions affect "only new users" who are assigned that license, so existing users need the permissions assigned through the Users page.
The failing code belongs to an extension
Microsoft's page on inherent permissions says developers can give a method permissions while it runs, and that this works only for objects in the same extension. It adds that after inherent permissions are applied, "security administrators can no longer control the permission". This is a developer change, not an admin step.
Example (illustrative): at Example Pty Ltd, user1@example.com (user ID USER1) gets the permission message when posting a sales invoice. The message names the Sales Line table and the Modify permission. Effective Permissions shows a row for codeunit Sales-Post with Execute, and a Sales Line row with Read but a blank Modify. The user-defined set EXAMPLE SALES is held by 6 people. The administrator exports it, writes down that Modify Permission for Sales Line is blank, sets it to Indirect, and USER1 posts the invoice. All 6 users can now post through Sales-Post, and none can edit Sales Line directly.
Confirm the fix
- The user repeats the exact action in the same company. The message does not return.
- Open Effective Permissions for the user again. The row now shows the access level you set.
- Ask one other user who holds the same set to do their normal work, since a set change reaches them too.
- If telemetry is on, look for further "Permission error shown" events for that user.
What to watch afterwards
- Keep permission sets small and named for a job, and assign them to security groups so that one change reaches the right people.
- Do not hand out SUPER to make a message go away. SECURITY lets a person delegate permissions they hold themselves.
- A date-range error is a different control. See Business Central "Posting date is not within your range of allowed posting dates": find the range that blocks the date.
Read next
Related articles you may want next.
- TroubleshootingBusiness Central "Posting date is not within your range of allowed posting dates": find the range that blocks the datePosting date is not within your range of allowed posting dates in Business Central: check User Setup, General Ledger Setup and journal templates in order.Read article
- TroubleshootingDataverse error 0x80040220 PrivilegeDenied: find the security role that lacks the privilegeDataverse error 0x80040220 PrivilegeDenied: read the message, check the user's security roles in the admin center, then fix the role or assignment.Read article
- TroubleshootingMicrosoft Graph PowerShell "Authorization_RequestDenied. Insufficient privileges to complete the operation."Microsoft Graph PowerShell returns Authorization_RequestDenied. Compare Get-MgContext scopes with Find-MgGraphCommand, then add the missing scope.Read article
Risks and limits
- None of these steps have been run or lab-tested.
- A permission set change does not help when the message comes from a page background task that writes to the database. That case needs a change to the extension's code.
- A permission set change reaches every user who holds the set. Record who approved it.
Sources
- Page Background Tasks — Microsoft Learn, page dated 15 February 2022, accessed 4 December 2026
- Assign permissions to users and groups — Microsoft Learn, page dated 3 March 2026, accessed 4 December 2026
- Analyzing permission error trace telemetry — Microsoft Learn, page dated 18 November 2026, accessed 4 December 2026
- Special permission sets — Microsoft Learn, page dated 21 November 2024, accessed 4 December 2026
- Create users according to licenses — Microsoft Learn, page dated 2 November 2026, accessed 4 December 2026
- Inherent Permissions — Microsoft Learn, page dated 3 April 2023, accessed 4 December 2026
- Permissions on objects — Microsoft Learn, page dated 4 June 2025, accessed 4 December 2026
This article was originally published on .