The Apex code is creating some custom object (NOT records, creating the custom object itself), but is only working when executed by admins. Otherwise, users get INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY
- even when they have "API Enabled", "View All Data" and "Modify All Data" permissions.
Am I missing another permission to give? I went through the questions with the same error but none seem to match my scenario.
Customize application
permission which is required to create custom object. help.salesforce.com/s/…