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

Posted on 2010-11-24
Medium Priority
Last Modified: 2012-05-10
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.

Question by:RHADMIN
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
LVL 10

Expert Comment

by:Minesh Shah
ID: 34236717
check in content database: tables: user info

Author Comment

ID: 34241198
Thanks, MineSharePoint, but it seems unrelating to my question.

Accepted Solution

RHADMIN earned 0 total points
ID: 35071691
Instead, I created a webpart just to do AD user query on user's status.

Author Closing Comment

ID: 35120645
a get-around solution

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Scenario: Let’s say you have a quote worksheet in Excel that you use to work up sales figures and such for your clients. You utilize SharePoint to manage and keep track of these documents. You would like values from your worksheet to populate Sh…
Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question