A security update to Salesforce Named Credentials now requires users who make Anonymous Apex callouts that reference Named Credentials to have the Customize Application user permission. Previously, only the Enable API Access permission was required for this action.
This change aligns the permission requirements for two related user actions: editing Named Credentials in the Setup UI (which always required Customize Application) and executing Named Credential callouts in Anonymous Apex (which previously only required Enable API Access). By requiring the same permission for both, Salesforce eliminates a privilege escalation risk.
Users who do not have the Customize Application user permission and who previously made Anonymous Apex callouts using Named Credentials are blocked from doing so. This change does not affect users who already have the Customize Application permission.
If you have users with a business requirement to make Anonymous Apex callouts using Named Credentials, assign them the Customize Application user permission. For information on this permission, see: User Permissions Reference
This change is part of Salesforce's ongoing effort to increase application security posture. Salesforce is fixing a discrepancy where two user flows accessing the same higher-privileged resource (Named Credentials) required different permission levels. This enforcement was applied as a platform security enhancement.
000392849

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.