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
SFDC New learnerSFDC New learner 

How to deploy the specific objects on profile

Hi Everyone,

I have created an profile by cloning existing profile(Sales Administer) and assigned record types,page layouts, object permissions and field level permissions to Account object.
But when I try to deploy the profile and include only the Account Object and specific fields in the package. It is deploying all the objects which are having access to the profile though I have not given in the package level. Can we control the access level in the package level while deploying the profile so that it will avoid removing unnecessory objects and fields manually?
User-added image
Please Suggest. 
Thanks
PriyaPriya (Salesforce Developers) 
Hey,

Kindly check this link which may help you :-
https://gearset.uservoice.com/forums/283474-help-us-improve-gearset/suggestions/38480575-explicitly-set-object-level-permissions-even-if-t
 

Kindly mark it as the best answer if it works for you.

 

Thanks & Regards,

Priya Ranjan


 
SFDC New learnerSFDC New learner
Thanks Priya for sharing the link. But I still didn't understood how to remove object permissions from custom profile explicitly. Can you please explain me in detail.