I have a custom field on a custom object, that field needs to be editable for a public group and for rest of the users/profile this should be read only.

How would I manage to achieve this.


Groups are associated with data visibility (roles, sharing etc.) whereas you're talking about field level security which is associated with profiles, so this approach won't work easily. You would have to either rely on page layouts or complex control through Apex, neither of which I'd recommend.

What you should do is create a profile with the base level of access required on those fields i.e. read-only, and they use permission sets to grant the requisite users write access.

  • I think Validation rule may also be applied to handle this problem by creating a check box on User level ( to determine whether logged in user belongs to specific Public Group or not) – CodeSpokes Mar 8 '13 at 11:42
  • 2
    @CodeSpokes that doesn't make any sense. Validation rules do not control who can access specific fields on an object. That is field level security. Field level security and validation rules are two completely separate things. I agree with Wes, permission sets are what you need here. – Jesse Altman Mar 8 '13 at 13:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.