Forum Replies Created

  • SAMI

    Member
    November 23, 2016 at 5:53 am in reply to: What are the differences between system mode and user mode in Salesforce?

    Hi Ajit,

    There is difference of execution perspective between User & System Mode. Like in

    User Mode :

    All Permissions granted to user are enforced while execution

    System  Mode :

    All permissions granted to user are ignored while execution. We can understand this by following example :

     

    Standard controller gets executed in user mode for e.g. if we use Account as standard controller in VF page and user does not have access permission to
    access Account then he will get insufficient privileges error message.

    Custom controller and custom extension always run in system mode ( ignoring user's permission) but we can run it in user mode using a new keyword
    "with sharing".

    • This reply was modified 8 years ago by  SAMI.

Popular Salesforce Blogs

Popular Salesforce Videos