0

SP2010 Visual C# Web Part. How can I allow Anonymous users the ability to use the People Picker control? I have already tried the typical RunWithElevatedPrivileges but continue to get "The control is not available because you do not have the correct permissions."

SPSecurity.RunWithElevatedPrivileges(delegate()
{
    using (SPSite ElevatedSite = new SPSite(SPContext.Current.Site.ID))
    {
        using (SPWeb ElevatedWeb = ElevatedSite.OpenWeb(SPContext.Current.Web.ID))
        {
            peopleEditor = new PeopleEditor();
            peopleEditor.AutoPostBack = true;
            peopleEditor.ID = "PeopleEditor1";
            peopleEditor.AllowEmpty = false;
            peopleEditor.MultiSelect = false;
            Panel1.Controls.Add(peopleEditor);
        }
    }
});

Is it even possible? Thank you.

  • Is this a publishing site? – Rob D'Oria May 21 '14 at 12:06
  • Aaron, did You resolved? – Gennady G Sep 16 '15 at 19:26
1

It is possible check this out:

The solution was to grant this permission to the 'contribute' permission level.

http://www.directsharepoint.com/2011/04/sharepoint-people-picker-control.html

I think thats what your asking for?

hope it helps :)

  • All my Permission levels already include "Browse User Information", thank you though. – Aaron Sep 4 '12 at 17:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.