Commit Full Profiles and Permission Sets
With Copado you have the ability to commit full profiles and permission sets from one source org into Git. This is specially useful when the profile or the permission set has to reconcile the existing permissions in Git with the latest changes in Salesforce.
Instead of having to commit all the related objects (as retrieve only) along with the profile or the permission set, Copado makes it simpler with this improved functionality.
When the Full Profiles & Permission Sets operation is selected, the metadata grid appears with the list of profiles and permission sets. When committing profiles and permission sets using this operation, the complete XML file is committed. This means that the committed files contain all the existing references to other components (e.g. object permissions, field permissions, page accesses, class accesses, layout assignments, record type assignments, etc.).
This feature is particularly useful for new profiles, where the standard commit of a profile does not retrieve its relationship with other components, and for existing profiles or the permission set in order to reconcile the current permissions in Git with the latest changes in Salesforce
You can commit full profiles and permission sets using 2 different methods:
- You can select the Full Profiles & Permission Sets option from the Git Operation field within the User Story Commit page.
- In older versions of Copado, you can add a predefined text (@fullprofilespermissionsets) as a comment in the commit:
- The Full Profiles & Permission Sets feature does not follow the standard behavior of the metadata API for profiles during the retrieve of system permissions. Turned off system permissions will be committed in the XML with the tag enabled as false.
- When you commit a full profile or full permission set for the first time with the Full Profiles & Permission Sets operation, if there is a conflict, the profile or permission set file in the feature branch will overwrite the file in the promotion branch.