[SalesForce] How to migrate profile settings from one developer org to another developer org

We have several developer orgs that are created for developers on our team. They are all developer editions and are independent from each other other than deployments through Jenkins. We have configured profiles on one org and want to migrate the changes from the source org to all other orgs. When we deploy with Jenknins, we get a successful deployment message but the settings such as custom object access and FLS are not deployed. I tried using Force.com IDE as well and noticed that the profile metadata is very minimal and does not include any of those settings.

Other discussions (e.g., this one) focus on Sandbox-Production deployment and suggest using Changesets to do this but based on my research, Changesets are for Sandbox-production orgs and not possible for our setting.

What can we do automate this and fully migrate profiles? and why does ANT not pull all the details (e.g., object access and FLS) of the profile?

Best Answer

Every single setting for a profile can be deployed using ANT.

Retrieve the Object along with the profile to get these :
1) FLS 2) Object CRUD 3) Record Type visibility 4) Tab Visibility

Retrieve the Page Layouts along with Record Types to get this :
1) Record Type - Page Layout - Profile assignment

Just deploy the "profiles" folder in both the cases, delete other ones from the retrieved Package.

Related Topic