I am currently attempting to update a new profile's permissions to match that of another profile (different license types, so cloning isn't available).
My current best solution is to pull various metadata types through SFDX along with the old and new profiles, copy the xml from the old profile to the new, and redeploy.
Only problem is, when I retrieve CustomObject and CustomField metadata, it only includes unpackaged objects/fields. I have a large managed package with many objects and customized levels of CRUD permissions, and I'm looking to update CRUD and FLS for those packaged objects and fields.
Is there a way to get managed package objects/fields in the profile metadata as well?
Here is my current package.xml:
<?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata"> <types> <members>*</members> <name>CustomField</name> </types> <types> <members>*</members> <name>CustomObject</name> </types> <types> <members>Commercial Lending Manager</members> <members>Loan Closing</members> <name>Profile</name> </types> <version>41.0</version> </Package>