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
Saurabh PriyadarshanSaurabh Priyadarshan 

I have a salesforce admin scenario based question asked in an interview which made me confused. Can anyone help me with this?

 Suppose there is a profile P1 and it has users U1, U2 and U3. There is  a custom object CO1 and has fields F1, F2, F3,... F10. Now I want to give access to U1 to fields from F1 to F5 and other users U2 and U3 to fileds F6 to F10. How do i do that??
Best Answer chosen by Saurabh Priyadarshan
Devi ChandrikaDevi Chandrika (Salesforce Developers) 
Hi Saurabh,

Using permission sets we can do this.First in the profile,in field level security section remove the access to these field and Create 2 permssion sets,in permset1 give field permssion for f1 to f5 and assign this permission set to  user u1, in permset2  give field permssion for f6 to f10 and assign to u2,u3.

Please refer below link which might help you in this
https://help.salesforce.com/articleView?id=perm_sets_overview.htm&type=5 (https://help.salesforce.com/articleView?id=perm_sets_overview.htm&type=5)

Hope this helps you
Let me know if this helps you. Kindly mark it as solved so that it may help others in future.

Thanks and Regards

All Answers

Devi ChandrikaDevi Chandrika (Salesforce Developers) 
Hi Saurabh,

Using permission sets we can do this.First in the profile,in field level security section remove the access to these field and Create 2 permssion sets,in permset1 give field permssion for f1 to f5 and assign this permission set to  user u1, in permset2  give field permssion for f6 to f10 and assign to u2,u3.

Please refer below link which might help you in this
https://help.salesforce.com/articleView?id=perm_sets_overview.htm&type=5 (https://help.salesforce.com/articleView?id=perm_sets_overview.htm&type=5)

Hope this helps you
Let me know if this helps you. Kindly mark it as solved so that it may help others in future.

Thanks and Regards
This was selected as the best answer
Saurabh PriyadarshanSaurabh Priyadarshan
Thanks a lot Devi..