Skip to main content
Hi,

I am trying to submit my package to the source scanner but it failed (and now I have to wait 24 hours befre resubmitting) because I did not have Author Apex Permissions for the user. I did the research and learned that I need to set this on the user profile, but I cannot find this setting on my user profile.

Any help greatly appreciated - I need to get this release out soonest

Thanks

PS: I have submitted several source scans in the past and never hit this problem. Has it changed in the past few months?
13 answers
  1. Jan 26, 2024, 7:49 AM

    If you're encountering difficulties setting the "Author Apex" permission in Salesforce, there are a few steps summarizetext you can take to troubleshoot and resolve the issue:

    1. Profile Permissions: Make sure the user's profile has the "Author Apex" permission enabled. Navigate to Setup > Users > Profiles, select the profile in question, and check if the "Author Apex" permission is enabled under System Permissions.
    2. Permission Set: If the user's profile doesn't have the "Author Apex" permission, consider creating a permission set that includes this permission. Assign the permission set to the user in question and verify if they can now author Apex.
    3. Organization-Wide Defaults: Ensure that the organization-wide defaults for Apex classes and triggers allow the user to create and edit them. Navigate to Setup > Security > Sharing Settings and adjust the organization-wide defaults if necessary.
    4. Modify All Data: The "Author Apex" permission also requires the "Modify All Data" permission. Verify that the user has the necessary permissions to modify all data in the organization.
    5. License Limitations: Ensure that the user has the appropriate license type that allows for Apex development. Some license types may restrict the ability to author Apex code.
    6. Permission Set Licenses: Check if the permission set assigned to the user includes the necessary license permissions for Apex development. Without the correct license permissions, the user may not be able to author Apex code.
    7. System Administrator Access: If the user still can't author Apex even after verifying permissions, consider temporarily assigning them the System Administrator profile to determine if the issue is related to profile permissions.
    8. Log in as the User: Sometimes, logging in as the user experiencing the issue can help identify any specific errors or limitations they're encountering when trying to author Apex.
    9. Salesforce Support: If the issue persists and you've exhausted all troubleshooting steps, consider reaching out to Salesforce support for further assistance. They can investigate any underlying issues with permissions or configurations in your Salesforce instance.

    By following these steps, you should be able to diagnose and resolve the issue preventing the user from setting the "Author Apex" permission in Salesforce.

0/9000