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
WesGrayWesGray 

Field/row level security help

I need to set up permissions such that for a given user, certain fields in a object are not visible unless that object row was created by the user's department.  For example, Sue in HR needs to be able to view all Employee records, but the Employee address should only be visible if someone in HR entered the Employee record.  I'm confused as to how to do this in Salesforce because the field level secutiry settings are done with a profile and the row level settings are done with a role, and my requirement is a little of both.  Thanks for any help.
werewolfwerewolf
If there's a field on User that you can use to decide whether someone's in HR or not, you can make a workflow rule that triggers when an Employee object is created by an HR person, then a corresponding Workflow Field Update that changes its record type to "HR" (for example).  Then you can have an HR layout that corresponds to the HR record type which shows the address field.