Why do we use RunWithElevatedPrivileges?

When the logged in user does not have sufficient permission to perform some task, then we can use SPSecurity.RunWithElevatedPrivileges code block to elevate the privilege in order to execute the code with higher permission.

When we run the code in SPSecurity.RunWithElevatedPrivileges code block, that particular code runs with App Pool Identity of the IIS website.

We value your feedback:

Page URL:

Name:

 

Email:

 
 

Feedback:

 

© 2019 Code SharePoint