Skip to content

Security and access

0x80040220

PrivilegeDenied

The user is missing a privilege needed for this operation on this table.

Hex
0x80040220
Decimal
-2147220960
Name
PrivilegeDenied

Common causes

  • The user's security roles do not include the privilege named in the message.
  • The privilege exists, but its access level does not reach this record, such as User level on another user's record.
  • A plug-in runs as a different user, who lacks the privilege.

How to fix it

  1. 01Read the message to find the exact privilege and table, then add it to one of the user's security roles.
  2. 02Check who the code really runs as, including impersonation and the plug-in step's run-in-context setting.

Causes and fixes are practical guidance, not an official statement. The code and name come from Microsoft's Dataverse error reference. This site is independent and not affiliated with Microsoft.