Solved

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

Posted on 2010-11-24
4
1,407 Views
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.

Thanks,
-Rick
0
Comment
Question by:RHADMIN
  • 3
4 Comments
 
LVL 10

Expert Comment

by:Minesh Shah
Comment Utility
check in content database: tables: user info
0
 
LVL 1

Author Comment

by:RHADMIN
Comment Utility
Thanks, MineSharePoint, but it seems unrelating to my question.
-Rick
0
 
LVL 1

Accepted Solution

by:
RHADMIN earned 0 total points
Comment Utility
Instead, I created a webpart just to do AD user query on user's status.
-Rick
0
 
LVL 1

Author Closing Comment

by:RHADMIN
Comment Utility
a get-around solution
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now