function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AmarjeetAmarjeet 

Deploying sharing setting and field level setting from one or to another

Hello all,

how to migrate sharing setting , object level setting and field level setting from one org to another or we need to set that all manually after deployment? Please give some suggestion .

Thanks all in advance.
Raj VakatiRaj Vakati
You can able to deploy them using changeset or metadata
But You need to include the object and profiles in the change set .. 

You have to include any profiles you want if they need access to any of the fields. Typically, the way this works is it uses the Ant Migration Tool. When you attempt to actually retrieve a profile from the specified org, it will only pull down permissions for the other items specified in the deploy. This means if you are only adding a single field, your profile being deployed will only have a single field in it as well. Since profiles will not overwrite each other, it simply applies the new person for that new field to the existing profile in the target org.
Long story short, the only permissions that get deployed for a specified profile are exactly related to the other items in your deploy. If you have a 1 field, 1 visualforce page, and 1 page layout, only the permissions related to those 3 objects will be pushed to the target org and the remainder of the permissions will be in tact. It will not overwrite other permissions.