Comprehensive and Detailed Explanation
Copado requires the relevant permission set and its associated metadata components to be included in the same incremental commit when capturing field-level security (FLS) modifications.
Salesforce stores field permissions within the permission-set metadata structure. Consequently, retrieving a permission set without identifying the related field may not capture the required incremental access changes.
When a developer commits a permission set, Copado evaluates the metadata selections associated with that specific commit operation. The fields whose permissions must be included need to be selected as part of the same operation.
For an existing permission set, the permission set is included using the appropriate commit operation, while the relevant field may be included as Retrieve Only. This allows Copado to capture the access configuration without unnecessarily deploying the field definition itself.
Committing the field and permission set separately on the same user story does not automatically guarantee that Copado reconstructs their incremental FLS relationship.
The key distinction is that a shared user story does not replace the component dependencies required within an individual commit.
An alternative is to commit the entire permission set using the Full operation, but this can introduce additional permission changes and must be evaluated carefully.
The same-commit requirement is therefore essential when using incremental permission-set commits.
Official References: Copado — Permission Set Commits and Deployments with Salesforce Source Format Pipelines, Scenario One and Scenario Two; Salesforce Metadata API — PermissionSet.
Submit