🎴 Flashcard Mode

Microsoft Excel and SharePoint Fundamentals

Card1 / 20
Mastered0
Review0
QuestionClick to flip

Webpart required permissions that user might not have. You need to ensure that users with insufficient permissions can also run web part to perform privileged operations. Which method should you use?

AnswerClick to flip back
A
SPSecurity.RunWithElevatedPrivileges
💡 Explanation:

SPSecurity.RunWithElevatedPrivileges executes the specified delegate under the context of the Sharepoint System Account (SHAREPOINT\SYSTEM), allowing users with insufficient permissions to run code that performs privileged operations. The other options do not elevate execution privileges.

Change Mode