I've a custom object accessible for a custom profile cloned from Salesforce/ Standard user profile. The custom object was created using a System administrator user profile. I've granted access to this custom object for my custom profile by setting permission in Object Settings :
But when testing CRUD from Apex, the custom object is still not accessible from the user custom profile :
CustomObject.sObjectType.getDescribe().isAccessible() // return false
Am i doing things well or is there something i've missed regarding user permissions to custom object?
Thanks for your help,
System.runAs(concernedUser);
in the test class or just made the concerned user run the test class?System.runAs(concernedUser);
It's really strange as the custom profile and system administrator profile privilegies are same on this custom object...and i didn't set any permission set for the user assigned to the custom profile...