Loading
Salesforce Enforces New Security Requirements in Summer 2026Read More

"Author Apex" Permission Required to Execute Salesforce Apex Code via SOAP API

Publish Date: Jun 19, 2026
Description

Overview

If a Salesforce user does not have the correct permission to execute Apex code using a SOAP API call exposed in the Apex WSDL (Web Services Description Language), the following error occurs:
"You don't have permission to execute Apex."
This error commonly occurs when a developer or integration user attempts to run anonymous Apex code using the executeAnonymous() API call — for example, via Workbench, the Salesforce Developer Console, or a third-party integration tool.

Resolution

Resolution

Users must have the Author Apex permission in Salesforce to execute Apex code using the executeAnonymous() API call or any other SOAP API call exposed in the Apex WSDL.
To add the Author Apex permission:
  1. Contact your Salesforce System Administrator.
  2. Request that the Author Apex permission be added to your Salesforce profile or permission set.
  3. Once the permission is granted, retry executing Apex code.
Note: The Author Apex permission controls the ability to create, edit, and run Apex code in a Salesforce org.

Additional Resources
For further information on permissions please review the following additional resources:

Trailblazer Community - Unable to set Author Apex Permission

Knowledge Article Number

000386957

 
Loading
Salesforce Help | Article