You need to sign in to do that
Don't have an account?
ryenduri
can user create record using with sharing apex class if user don't have access on object
Can user create a record If he don't have access on object and executing apex class(Creates new record on that object) having with sharing keyword?
Check below reference for more details.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_keywords_sharing.htm
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
Does it mean that the user cannot create a record, if he don't have access to object and executing the "with sharing" class?
In order to answer your question, No, User cannot a create a record if he doesn't have access to object and class is running in a with sharing mode.
Thanks,
Abhishek Bansal.