Is it possible to retrieve all profile metadata (e.g. every custom object, field, page layout, record type, etc…) in vscode?
I tried using the org browser and don't see a profiles folder. I tried using the Salesforce Package.xml generator extension but it only seems to pull in permissions related to other objects in the retrieve request.
So, does anyone know a way to retrieve everything or pull a complete profile? My ultimate goal is to compare two profiles so we can start reducing our number of unnecessary profiles.
Best Answer
in order to get every information about the profile, you have to create a package.xml file where you have to mention all the metadata for which you want to see the profile permissions. The below package.xml file contains custom objects, applications, tabs and profile. The profile metadata file will have information about user permissions, custom object field permissions, custom tabs and application permission. You can extend it to whatever you want.
My retrieved profile metadata file looks like:-