Permission can not be modified on a standard profile
Detection
- RegExp:
Error (.*) You may not modify the permission (.*) while editing a Standard Profile
Examples
Error Read Only You may not modify the permission ViewSetup while editing a Standard Profile
Resolution
A deployment can not give or remove permission {2} on the standard profile {1}.
- Remove the <userPermissions> block of {2} from {1}, and give {2} with a permission set
- The minimizeProfiles cleaning moves such attributes out of profiles at each save: add it to autoCleanTypes in .sfdx-hardis.yml (https://sfdx-hardis.cloudity.com/salesforce-devops-work-on-user-story-profiles/)