+ Start a Discussion
giri rockzzzzgiri rockzzzz 

Salesforce Custom Settings data security

Hi,
I am using Salesforce Custom Settings for storing config details for my apex code base.
Can we make data readonly in Custom Settings objects ?

At present i see that users under a profiles which is having "Customize Application" permission enabled, can view the data and edit it in Salesforce UI. 
Is there anyway from stopping a user from editing the config details data in Custom Settings object ?

bob_buzzardbob_buzzard
Unfortunately not, you don't have any granularity about editing settings.  There's an idea to add triggers to custom settings at:

https://success.salesforce.com/ideaView?id=08730000000gv5nAAA

which would allow you to block edits from particular profiles/users, but it has very few votes.

If you need to be able to restrict access, you'll have to burn a custom object to hold your settings and use the sharing functionality to control access.