function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

prevent access to an object

We are planning to store emplloyee performance review data in a custom object.  I know that I can modify all profiles to restrict access.  However, if I mistakenly check the box 'modify all data', I could inadvertently grant access.


Is there a way I can block access to a certain object so that I don't constantly have to test all my custom profiles?   I'd like to grant access only to one user.


You can always restrict access with Sharing Settings to your custom object.


What you can do is set the OWD on this object to PRIVATE and ensure that all data in this object is owned by an Admin user (who sits on the top in the hierarchy)

That should work for you!


Let me know if this helps!