Loading

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

发布日期: Jun 19, 2026
描述

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

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.

其他资源
For further information on permissions please review the following additional resources:

Trailblazer Community - Unable to set Author Apex Permission

知识文章编号

000386957

 
正在加载
Salesforce Help | Article