PeopleEditor() to show all AD users(including disabled user)

Hi SharePoint Experts,

I am using following to code to search all AD users(enabled and disabled):

          _PeoplePicker = new PeopleEditor();
          _PeoplePicker.AutoPostBack = false;
          _PeoplePicker.ToolTip = "Type in a user name or click browse.";
          _PeoplePicker.PlaceButtonsUnderEntityEditor = true;
          _PeoplePicker.ID = "PeopleEditor"; ;
          _PeoplePicker.AllowEmpty = false;
          _PeoplePicker.SelectionSet = "User";
          _PeoplePicker.MultiSelect = false;

But it doesn't show disabled AD users, is there a way to modified it with such behavior ONLY for this coded People Picker. I don't want to change the default behavior for the whole site.

Who is Participating?
RHADMINConnect With a Mentor Author Commented:
Instead, I created a webpart just to do AD user query on user's status.
Minesh ShahSharePoint & all about itCommented:
check in content database: tables: user info
RHADMINAuthor Commented:
Thanks, MineSharePoint, but it seems unrelating to my question.
RHADMINAuthor Commented:
a get-around solution
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.