Answers.Body: <p>I was experiencing a similar issue, the difference for me is I have a public facing form that allows non-logged in users to submit the form to create individuals in Civi. Located on the Form Settings tab, I had the Form's Permission set to <em>Generic: Allow all users (including anonymous)</em> but experienced the same Authorization Failed error.</p>
  <p>My solution was to change each of the form's &quot;entities&quot; <em>Security</em> from <strong>User-Based</strong> to <strong>Form-Based</strong> which then used the Form's Permissions mentioned above. To find this setting:</p>
  <ol>
  <li>Edit your form and find the Form Settings tab (should be selected by default).</li>
  <li>Each of the tabs to the right is what I'm calling an &quot;entity&quot;. You may only have one or many depending on your form.</li>
  <li>On each of these tabs, about half way down, directly under the <em>Options</em> header is the <strong>Security</strong> drop down. This is what I changed to Form-Based.</li>
  </ol>
  <p>I hope this helps you.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-01-16T00:35:00.863Z
Answers.Text: Thanks for that -  Have parked it for now, but will take alook at that option when I get a moment!
Answers.UserDisplayName: John Knight
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-01-06T06:06:39.217Z
Answers.LastActivityDate: 2024-01-06T06:06:39.217Z
Answers.UserDisplayName: Bloodstripe
Body: <p>I have created a form in Form builder to enable a logged in user to update some details we have stored for them (their Gift Aid status).
  This displays via a short code in  a wordpress page  ([civicrm component=&quot;afform&quot; name=&quot;afformGiftAid&quot; hijack=&quot;0&quot;])</p>
  <p>If I am logged in as an administrator it updated the record. If I am logged in as a &quot;general user&quot; it does not update the record. I am guessing this is a permission issue -  Can anyone  advise what permissions need to used in Civi/ Wordpress to ensure the record gets updated -  I have tried a few and no success.</p>
  <p>We are getting the following errors in the Log files</p>
  <p>[debug] Silently ignoring exception in Afform processGenericEntity call: Authorization failed
  [debug] $API Request Authorization failed = #0 /.../wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php(153): CRM_Core_Error::backtrace(&quot;API Request Authorization failed&quot;, TRUE)</p>
  <p>Wordpress  6.4.1 CivCRM 5.65.2</p>
  
Tags: <permissions><formbuilder>
Title: Form Builder Not updaing details
ThreadText: # Form Builder Not updaing details
  
  (Asked by: username_0 on 2023-11-20)
  
  I have created a form in Form builder to enable a logged in user to update some details we have stored for them (their Gift Aid status).
  This displays via a short code in a wordpress page ([civicrm component="afform" name="afformGiftAid" hijack="0"])
  
  If I am logged in as an administrator it updated the record. If I am logged in as a "general user" it does not update the record. I am guessing this is a permission issue - Can anyone advise what permissions need to used in Civi/ Wordpress to ensure the record gets updated - I have tried a few and no success.
  
  We are getting the following errors in the Log files
  
  [debug] Silently ignoring exception in Afform processGenericEntity call: Authorization failed
  [debug] $API Request Authorization failed = #0 /.../wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php(153): CRM\_Core\_Error::backtrace("API Request Authorization failed", TRUE)
  
  Wordpress 6.4.1 CivCRM 5.65.2
  
  **Tags:** permissions, formbuilder
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-01-06. Score: 5
  
  I was experiencing a similar issue, the difference for me is I have a public facing form that allows non-logged in users to submit the form to create individuals in Civi. Located on the Form Settings tab, I had the Form's Permission set to *Generic: Allow all users (including anonymous)* but experienced the same Authorization Failed error.
  
  My solution was to change each of the form's "entities" *Security* from **User-Based** to **Form-Based** which then used the Form's Permissions mentioned above. To find this setting:
  
  1. Edit your form and find the Form Settings tab (should be selected by default).
  2. Each of the tabs to the right is what I'm calling an "entity". You may only have one or many depending on your form.
  3. On each of these tabs, about half way down, directly under the *Options* header is the **Security** drop down. This is what I changed to Form-Based.
  
  I hope this helps you.
  
  > **Comments:**
  > **username_0**: Thanks for that -  Have parked it for now, but will take alook at that option when I get a moment!  
  
  ---
  
  