You need to sign in to do that
Don't have an account?
SR02
without sharing and profiles
I am having a requirement to create account record when logged in as a user whose profile is not having create access to accounts. And the controller which is being used by lightning component has been declared as without sharing. However I am still getting insufficient access error at the line where i am inserting new accounts.
Now I am totally confused with the concept of without sharing which runs in system mode still looks for the profile level settings??
Some one please help me to resolve this issue.
Now I am totally confused with the concept of without sharing which runs in system mode still looks for the profile level settings??
Some one please help me to resolve this issue.
Can you look into below link to know more about with sharing and without sharing.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_keywords_sharing.htm