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.

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

1 Answer 1

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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