Loading

Troubleshooting 'Insufficient Privileges' Errors on Records in a Salesforce Sandbox

Fecha de publicación: Aug 27, 2026
Descripción

If Users are unable to access a particular record or subset of records in a sandbox environment and are encountering an "insufficient Privileges" message, first ensure that they have appropriate access granted via security controls.

If the affected User(s) clearly have appropriate access, via the View/Modify all data permissions for example, and are encountering an "Insufficient Privileges" message upon attempting to access the data through the user interface, or are receiving an error message stating, "insufficient access rights on object id" upon attempting to modify or delete records via the API:

Check the system audit fields on the affected records by exporting the data from the sandbox environment or check them in production if you cannot view/export the data from sandbox.

Compare the created or last modified system audit field's date stamps to see if they correspond to the affected sandbox's refresh date. If they correlate to one another the unexpected behavior may be the result of the affected records being created or modified during the sandbox refresh process.

Solución

This article explains why some Users get "Insufficient Privileges" or "Insufficient access rights on object id" errors when accessing, editing, or deleting records in a sandbox, and what to do if a permissions review does not resolve it.

Why This Happens

A sandbox is not a point-in-time snapshot of the exact state of your data. Salesforce recommends limiting changes to your production organization while a sandbox is being created or refreshed. Setup and data changes made to production during the sandbox creation or refresh operation can result in inconsistencies in the sandbox. You might not detect and correct these inconsistencies until after the sandbox copy or refresh finishes.

To check whether this is the cause, export the affected records' system audit fields from the sandbox (or check them in production if you cannot view or export the data from the sandbox), and compare the Created Date or Last Modified Date to the sandbox's refresh date. If the dates line up, the unexpected access error is likely the result of records being created or modified during the sandbox refresh process.

Logging a Case with Support

If this appears to be the scenario and the behavior is disrupting your business process or testing, log a case with Salesforce Support. To help our team understand the impact and investigate efficiently, include the following information:

  1. What percentage of your Users is affected?
  2. Does this affect data integrity?
  3. Do you have a viable workaround?
  4. Does this affect critical application functionality?
  5. What business functionality are you unable to perform?
  6. Is this related to a new integration, rollout, or ramp-up?
  7. Is there an estimated revenue cost to this issue?
  8. Are there impacts beyond these that are affecting your business?

Finding Your Sandbox Organization ID

Be sure to include the organization ID for the affected sandbox in your case. You can find it by logging into the environment and navigating to:

In Salesforce Classic: Setup | Company Profile | Company Information
In Lightning Experience: Gear icon | Setup | enter Company Information in Quick Find | click Company Information from the menu option.

In the Organization Detail section, the Salesforce.com Organization ID field is your sandbox org ID.

Granting Support Login Access

Provide the affected User's name and make sure login access is established for Support. This can be set by navigating to:

In Salesforce Classic: Your name | My Settings | Personal | Grant Account Login Access, and set the access expiration date for Salesforce.com Support.
In Lightning Experience: Your avatar | Settings | Grant Account Login Access | set the access duration for Salesforce.com Support.

What to Include in Your Case

Lastly, include links or IDs for the affected records and detailed steps the Users are taking up to the point where the error messages appear.

Número del artículo de conocimiento

000385757

 
Cargando
Salesforce Help | Article