RunWithElevatedPrivileges does not work with UserProfile API

This blog post is a contribution from Aaron Miao, an engineer with the SharePoint Developer Support team. RunWithElevatedPrivileges executes the specified method with Full Control rights even if the user does not otherwise have Full Control. This is not true for User Profile API. To reproduce, with code below in a web part: SPSecurity.RunWithElevatedPrivileges(delegate() {…

1