Skip to content

Unknown user permission: Dev Hub permissions

Detection

Examples

  • Error Admin Unknown user permission: packaging2promoteversion

Resolution

Permission {2} only exists in an org where Dev Hub is enabled (usually production): the target org of {1} does not have it.
- sfdx-hardis removes such permissions before each deployment with the built-in replacement rule builtin-unknown-user-permissions: check it is on (https://sfdx-hardis.cloudity.com/salesforce-devops-config-replacement-rules-builtin/)
- Or remove the <userPermissions> block of {2} from {1}

Comments