We have a permission set with this metadata:


Deploying this to a scratch org returns the error:

Permission ModifyAllData depends on permission(s): EditPublicReports, EditReports, ManageDashboards

The problem is, if I add this line to the permission set:


Then I am no longer able to deploy to my sandbox, with the error "Unknown user permission: EditPublicReports".

The only stackexchange result for the above error is this one which is now entirely out of date.

How can I solve this error so that we can deploy this permissionset both to scratch orgs, and to sandboxes?

  • Stab in the dark: does your sandbox have Enhanced Report Folder Sharing turned on? It's on by default in new orgs, but very old orgs may have it turned off.
    – David Reed
    Jun 4 '20 at 2:40
  • We're on service cloud and searching for "folder sharing" in the setup quickfind box returns no results. is there somewhere else I should look?
    – Andy Ray
    Jun 4 '20 at 3:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.