SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
    
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

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 :)

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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