I have a lightning component in a Beta Managed Package that uses a Custom Setting to define in which unit a value is shown. When using the component, the user has the option to click on a button that will change that current unit.
This is done by an Apex method that upserts the value of that unit (a record of this Custom Setting) from A to B. If you click again it goes back from B to A. Only those two options.
The thing is that apparently the only way to give WRITE access to one particular Custom Setting is by giving Write access to all Custom Settings in the Org, through the Customize Application permission (according to what I've read of Spring 20' release, link below).
I want a Standard User to be able to use the component and Upsert the record of this Custom Setting, without giving the User the access to write EVERY Custom Setting in the Org.
Is this possible? (I've tried Custom Setting Definition in Permission Set but this gives just read access, not write).
By the way the Apex Method uses SObjectAccessDecision to strip inaccessible fields, which triggers the error when the user does not have write access on that custom setting field.
Thanks!