<turbo-stream action="update" target="wiki_card"><template>
<h1>403 Forbidden</h1>
<p>This error message <strong>The REST service returned a status code that is not 20x - i.e. not OK - Status code received: 403 Forbidden Response body:<br>{"error":{"code":"Internal_ServerError","message":"Sorry, the current permissions prevented the action.(TableData 38 Purchase Header Modify: Base Application) </strong>indicates that the user or application does not have permission to perform the requested action.<br>The user or service account <strong>does not have permission to modify the </strong><strong><code>Purchase Header</code></strong><strong> table (Table ID 38)</strong> in Business Central.</p><p>This typically happens when:</p><ul><li>The integration attempts to <strong>create, update, or post a purchase document</strong> (e.g., Purchase Order or Invoice), and</li><li>The associated user <strong>lacks MODIFY permissions</strong> on <code>Purchase Header</code>.</li></ul><p>This is a <strong>standard security restriction</strong> in Business Central to prevent unauthorized data changes.</p><p><br><br><br></p><p></p><img src="/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBbHdEIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--f28ccb08a361d81bd91dc3d6efb6c098cf5ade6f/image.png" width="640"><br><br><br><br><br><br><br><br><br><br><br><br><br><br><p></p><ul><li><strong>Object Type</strong>: <em>TableData</em> (commonly used, though other types exist like Table, Report, Page, etc.).</li><li><strong>Object ID</strong>: <em>38</em> (identifies a specific table).</li><li><strong>Object Name</strong>: <em>Purchase Header</em> (Table ID 38 corresponds to this name).</li><li><strong>Permission Needed</strong>: <em>Modify</em> (one of five permission levels: Read, Insert, Modify, Delete, Execute). The user was blocked from modifying a purchase invoice due to insufficient permissions.</li><li><strong>Extension Name</strong>: <em>Base Application</em> (indicates that the permissions apply to Business Central’s standard functionality, not an add-on).</li></ul><p><strong>Solution:</strong> To resolve the error, you need to <strong>grant </strong><strong><code>MODIFY</code></strong><strong> permissions on TableData 38</strong> to the integration user or service principal.<br><strong>Step-by-Step Fix</strong>:</p><p>If Using a User Account:</p><ol><li>Go to <strong>Business Central</strong> &gt; <strong>Users</strong>.</li><li>Locate the user involved in the integration.</li><li>Under <strong>User Permission Sets</strong>, either:<ul><li>Add a new permission set that includes:</li><li><pre><code>Object Type: TableData<br>Object ID: 38 (Purchase Header)<br>Permission: Modify<br></code><br></pre></li><li>Or modify an existing permission set to include the <code>Modify</code> right on TableData 38.</li></ul></li></ol><p>If Using Azure AD App (Service-to-Service Auth):</p><ol><li>Go to <strong>Azure Active Directory</strong> &gt; <strong>App registrations</strong>.</li><li>Find the app used for authentication.</li><li>In Business Central, assign this app the correct <strong>Permission Set</strong> (with <code>MODIFY</code> on TableData 38).<ul><li>Use <strong>Admin Center &gt; Environment &gt; Manage App Permissions</strong>, or</li><li>Create a <strong>delegated user</strong> with sufficient permissions and impersonate it.</li></ul></li></ol><p>&nbsp;Optional Tip:</p><p>If you're unsure which permissions are required, monitor <strong>“Effective Permissions”</strong> or use <strong>Permission Recorder</strong> in Business Central to capture exactly what’s being accessed during the failing operation.</p><p><br></p>
</template></turbo-stream>

<turbo-stream action="replace" target="meta_description"><template><meta content='403 Forbidden' id='meta_description' name='description'></template></turbo-stream>
<turbo-stream action="replace" target="meta_keywords"><template><meta content='403 Forbidden ' id='meta_keywords' name='keywords'></template></turbo-stream>
<turbo-stream action="update" target="meta_title"><template>403 Forbidden - MyRapidi Wiki</template></turbo-stream>
<turbo-stream action="prepend" target="flash"><template></template></turbo-stream>
