New answers tagged profile-sync
You need to set the correct permissions in User profiles service application! Go to Central Admin Manage Service Applications -> User Profile Service Application Click Administrators in the ribbon and add the user and set the Manage Profiles permission for it If you're running your code as ElevatedPrivileges then I assume the identity of the application ...
Make sure the properties are configured to be publicly retrievable. To do this, edit the User Profile property and make sure that "Default Privacy Setting" is set to "Everyone".
Top 50 recent answers are included