Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

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.