 Hello friends. I'm Sanjay Gupta. I welcome you on Sanjay Gupta Tech School. In this video, we will talk about field level security that is available in Salesforce. So before starting, if you want to watch more Salesforce training videos, you can go to the description of this video and you will find various links of playlists related to Salesforce. Now coming onto the topic. So first let's understand these points. So you can restrict access to certain fields in Salesforce even if user has object level access. So let's say if user profile is having access to object like user can create records, user can add it, user can delete the record. So if user has those object level access, even if you can restrict access to certain fields for that user with the help of field level security. Second point says you can make a field visible to a particular user and hide that from another user. So that you can do with the help of profiles. Then there are two permissions that you can give to a particular field. One is read only and second is edit. And if you don't give any permission like you uncheck read as well as edit, then that field will not be visible to that particular user. Then last point says field level security can be controlled using profiles and permissions. So let me take you to my org. So in my org, I have various users. So currently I'm logged in with this user, Sanjay Gupta, who is system admin. Another user is Vikas who is having my users profile. So I'm opening another browser metro. And here I'm going to log in with this user. So now first I'm going to display like a particular record where field is visible or editable. Then I will apply FLS so that particular field will be read only or it won't be visible on the record. So I'm taking account for example purpose account is object. I'm opening its record. And here you can see various fields are available. So let's talk about industry. So right now we can view industry for this profile user. And we can also change its value. So it is editable. So it changed. Now I'm moving to this browser from here. I'm going to open that profile. So here you can see this user's profile is my user profile. So here it is. So you need to open the profile. Then you need to search for the object. So here you can see field level security. So it is for standard object. And here it is for custom objects. So account is a standard object. So I'm looking at clicking on view. And here you can see I'm clicking on edit. So here read access and edit access. So I'm searching for industry. So industry is having both. So first time they work in edit access. So it means this field industry is having only read access. So we won't be able to edit that field on particular record. Yeah. So I'm saving this. So this profile is modified now moving to that browser. Now I'm doing a refresh. So now you can see user won't be able to edit that field. User can only view the value that is available to that field. So here you can see unable to create update fields industry. Please check the security setting of this field and verify that it is really right for your profile of permissions. So user won't be able to edit this field because it is having only a lead permission. Now, again, I'm clicking on edit. So I'm not changing the page layout. So that field is on page layout, but I'm working read access. So if a field is not having both read and edit access, then automatically it will be removed from the page layout for that user only, not actually from the page layout, but for that particular profile user. So for other profile users that field will be available if they have permission but for this user that field won't be visible. So here you can see industry is not showing any kind of data. Right. So this way you can apply field level security. Now, when you restrict access of a particular field from profile and profile is having a certain group of users associated. Now, if you want to give access to this particular field to a particular user. So for that, you can create a permission set. So for example, this profile is having five users associated and you want to give access to this particular field that is industry to a particular user. So you can create permission set and you can give additional permission to that user. So I'm opening this demo permission set and in this permission set I'm opening object setting, opening account. So clicking on edit and you will see in permission set all the check boxes are unchecked. So we need to check industry check box. So through this permission set we are adding this permission for a particular user. So now we need to check the manager assignment. So I demonstrated this demo permission set for object level security as well. So because Gupta is already assigned on this permission set. So now I gave that FLS also. So now if I refresh this page, so this user will be having read and edit access for that industry field on account object. So this way you can add permissions with the help of permission set. So now you can see you can view the values. You can edit as well because that permission set is giving additional permission to this user. So this way you can use profiles to control the level security. And if you want to open up those level security for certain users, then you can create permission. Now one more thing, when we create a particular field, so let me take you to account fields. When we create a particular field, you might have noticed while creating fields. It says like which permission you want to give to which profile. So let me create a field quickly so that we can demo it. So let me create a check box field. I'm putting test here, clicking on next. Yeah, so here you can see established field level security. So here also you can set field level security from the beginning while creating the field. So if you click visible, so it means field will be visible on the page layout and it will be in editable form. Now if you want to place that field in read only form. So for a particular profile, let's say my user profile, you can check this check box. So for this profile, this field will be visible but in only read only form. And if you want to apply this for all the profile, you can click on this check box. So now this field will be visible but in form of read only for all the profiles. If you uncheck this, now your field will be visible for all the profiles in form of edit. So this way you can control FLS while creating fields. Now if you want to modify FLS for existing fields, so you can open any field and click on set field level security. So from here also you can manage FLS. So this field is having visible permission for all the profile. It means this field will be available for both visible and editable. Like you can view and edit whatever value is available in that field. If you want to modify permission for this field for particular profile, so you can change that as well. And you can click on save. And if you remove both check boxes, then this field will not be visible either read only or editable form. So this way you can do these changes. So I explained you three things. You can control FLS through profiles. You can control FLS while creating fields. You can control FLS for existing fields as well. And you can control FLS through profiles as well as permission sets. So as per the requirement you can apply those. So I hope you understood how we can apply field level security in Salesforce. So if you have object level security then also you can control like which fields will be accessible by which users in Salesforce with help of field level security. So I hope you understood whatever I demonstrated in this video. You can do these demonstrations in your org as well. And if you want to watch more Salesforce training videos, you can go to description of this video. You will find links of various playlist and you can follow. Thank you for watching this video.