A growing manufacturing company has a custom field, Salary_Range__c, on the Position object. All members of the Human Resources department share a single custom HR Profile. Management requires that two temporary HR interns on this profile be restricted from viewing or editing the Salary_Range__c field, while all other HR team members retain full view and edit access. Which configuration change should the Salesforce Administrator implement to meet this requirement while adhering to Salesforce security best practices?
- Remove Read and Edit permissions for Salary_Range__c on the HR Profile, create a Permission Set granting Read and Edit access to Salary_Range__c, and assign the Permission Set to all HR team members except the two interns.Cevap
- BClone the HR Profile to create a new profile with Salary_Range__c permissions disabled, and reassign the two HR interns to this new profile.
- CUse Dynamic Forms on the Position Lightning Record Page to set component visibility rules that hide the Salary_Range__c field from the HR interns.
- DAdd the IP addresses of the two HR interns to the organization-wide Network Access settings to restrict access to sensitive fields.
Cevap
Remove Read and Edit permissions for Salary_Range__c on the HR Profile, create a Permission Set granting Read and Edit access to Salary_Range__c, and assign the Permission Set to all HR team members except the two interns.
The option advocating restricting field permissions on the profile and granting them back via a permission set correctly enforces the principle of least privilege. In Salesforce, field-level security must be restricted at the profile level when any user on that profile should not view the data, and permission sets are then assigned to grant access to the remaining users.
Adım Adım Çözüm
Anahtar Kavram
Field-Level Security (FLS) & Permission Set Architecture