+ Start a Discussion
giri rockzzzzgiri rockzzzz 

Salesforce Custom Settings data security

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 ?

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


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.