[SalesForce] Edit Permission on Field with Particular Record Type for Selected Users

Want to do :

  • Give Edit permissions for "Field1__c" on only Record Type = "Record_Type1" for Standard object to particular users (u1, u2,u3) only.

All other users will Read Only for that field on Record_Type1 —NOT for Record_Type2.

Where users can be of any profile, any role.
And only selected user should be able to edit Field1__c not the others who share same profile/role.

To start with the Solution I have to

  • Set Field1__c as Read Only for all profiles in Fields Accessibility.

but the problem is :

> Users will not be able to EDIT field on another record type i.e. Record_Type_2

Can not use Validation Rule – Since I have Before Triggers with other business logic.

UPDATED QUESTION :
Let me clear some confusion here ….

          RT-1_____RT-2

Profile 1___EDIT_____EDIT
Profile 2___EDIT_____EDIT
…………….:___EDIT_____EDIT
…………….:___EDIT_____EDIT
Profile n___EDIT_____EDIT

NOW the scenarios is =>

  • Record Type -1 : Have given "Edit" access to all "n" profile users
  • Record Type -2 : Have given "Edit" access to all "n" profile users

I WANT TO DO THIS =>

  • Record Type -1 : (Do not change anthing)Should have "Edit" access to all "n" profile users
  • Record Type -2 : Should give "Edit" access to Set of users only (where users have different profiles)

SO this will change Like :

          RT-1_____RT-2

Profile 1___EDIT_____EDIT (For Set of Users) && Read(for all other)
Profile 2___EDIT_____EDIT (For Set of Users) && Read(for all other)

…………….:___EDIT_____EDIT (For Set of Users) && Read(for all other)

…………….:___EDIT_____EDIT (For Set of Users) && Read(for all other)

Profile n___EDIT_____EDIT (For Set of Users) && Read(for all other)

Notice: Nothing is changed for Record Type-1

Best Answer

Give edit permission to all profile for this field. After that create custom permissions in sfdc and add it to permission sets. Assign this permission set to user who wants have edit permision on this field. In the next step create a validation rule where in you can use on ischanged on the particular field ,add the recordtype value and also you will have the options to use $permission global variable and refer the custom permission you have created.

Thanks, Apoorva Gautam

Related Topic