.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

User Profile -- search for Department not working

Posted By:      Posted Date: October 04, 2010    Points: 0   Category :SharePoint

I am trying to search for users who are in certain department. E.g HR. But the following returns nothing.

In user profile, I have a field department (property name), I wonder why it returns nothing.


And even when I tried http://mycompany.intra/SearchDEf/Pages/peopleresults.aspx?k=Department, it returns only 47 records. And when I actually look at some of the records, some of them have value in department but some of them are empty. So, I am wondering if it is looking at something else instead of the department field.

Please advice. Thanks in advance.

View Complete Post

More Related Resource Links

Moved MySites. Now suddenly while Search finds the user profile pictures, user profile pictures don'


We did an architectural change and moved MySites by creating a new MySite host, assigning it to the User Profile Service application and then deleting the old MySite host.

I'd like to avoid recreating the User Profile Service application. Is it possible to fix this UPS issue (I assume it's an UPS issue), without recreating UPS?

User Profile Sync with AD - very odd behaviour, some profiles not working


1 x SP WFE, 1 x Dedicated SQL backend

So this has been driving me mad now for over a week....

SharePoint Server 2010 Enterprise trying to sync 3000 users from Active Directory. Everything appears to be setup fine;

- Replicate directory changes granted
- Netbios fix applied with powershell
- SharePoint Sync Service running
- FIM services running (although one does occasionaly stop)
- August Cumulative Update applied

I have created the Service Application and the Connection to AD - choosing the OU's I want to sync.

3000+ user profiles appear to sync correctly, from Central Admin browsing through the users ALL of their profile information is complete and ready to go. No errors in MIISClient.exe or on the server anywhere.

The problem occurs from the front end when we try to add user to SharePoint groups. Seemingly by random one morning a large proportion of the user profiles when you browse for them through the SharePoint interface appear only as DOMAIN\USERNAME with no other profile information available.

If you login with one of these users (having granted them direct access) their login name top right is DOMAIN\USERNAME and in My Settings the profile information is BLANK.

After the user has logged in, 20 minutes later or so their profile information is suddenly avai

User Profile working, but domain in the Account Name field is incorrect


Profile import is working with a small set of users from just one OU. The synchronization connection has a Forest Name of "corp.mycompany.com", just like in our current profile settings in MOSS 07.

However, the user profiles created are listed with "corp" as the domain, not "mycompany".

E.g. my profile Account Name shows "corp\eriehl", but it should be "mycompany\eriehl".

How do I update this reserved property to contain the correct value for our domain?

Sharepoint 2010 Manage User Profile Search



We have about 650 user profiles loaded and all seem to be pulling up correct with the sharepoint sites.  The profiles are available to the end user.  However when I try to search for any profiles in Central Administration -> Manage User Profiles, it only retrieves a few back (~10).   There are no profiles in the "Missing from import" section either.  I have tried all different types of criteria (domain\accountname, accountname, domain...)

Any help as to why I cannot pull up the profiles would be greatly appreciated!!

By the way..  the page displays that we have 650 user profiles as well.  "Total Number of Profiles: 650"


My Profile - View "XXXXXXX" User Profile not working correctly



Our organisation is using SharePoint 2007 SP2. 

We've recently discovered that when a user clicks on another user's name on a standard SharePoint site called "SharePoint Investment Site", they request a link such as...


Which redirects the user to a "My Profile" page with the address...

http://mysite.com/Person.aspx?accountname=microsoft\gatesb&Source=http://sharepointsite.com/sites/12345/_layouts/userdisp.aspx&Force=1&ID=18&Title="SharePoint Investment Site"

On the "My Profile" page, I can see microsoft\gatesb profile. On the top right of the screen I get the following links...

"View SharePoint Investment Site User Info" & "Add to My Colleagues".

Does anyone know why the "User Info" link has got "SharePoint Investment Site" in it? It's passed by userdisp.aspx in the "Title" parameter.

Also, the "User Info" link is to http://sharepointsite.com/sites/12345/_layouts/userdisp.aspx?Force=1&ID=18. Which is the URL for microsoft\gatesb, not "View SharePoint Investment Site User Info".

Can anyone help clear this mess up?


Membership Search user


Is there a membership function to search a username Like this:   LIKE '%UserName%' ?

This is not working.

MembershipUser User = Membership.GetUser("%" + TextBox1.Text + "%");

Thank you.

Unable to search Custom User Property Created in User Profiles in SharePoint 2010


Hi ,

I have created a custom user property,and created metadata property and added mapping to it, still i m not able to Search in People,Please advise

Sharepoint 2007 Search Not Working


I am pulling my hair out guys. I have tried everything i could find from this site and all other sites but have not been successful. No matter what i do I cannot get the search to work. We are using SharePoint 2007 and the search had been fine but our security team performed some patches and now I’m stuck with a dead search feature.

Any help would be immensely appreciated.

Things I have tried but did not resolve the problem:

1. Check all accounts and passwords

2. Run the SharePoint Products and Technologies Configuration Wizard

3. Reboot server reset IIS

4. Try to rebuild the index but that also fails

5. Check the Content Access Account

Office Sharepoint Server Search not working but Windows Server Search is.

I am having an annoying Issue with the Sharepoint 2007 Enterprise search functionality. I cannot get the Search Centre to work, the out of the box webparts crash the page except the Searchbox when the others are closed. The event viewer shows up numerous Errors (Office Sharepoint Server - EventID 7080) returns with and the same when trying to add a search related web part (e.g. core.results, federated etc). EventID 6398 - Timer is a regular as is 7080. Details below.

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified).

Remote connections are connected, I am not 100% on the Instance name, (how would I go about checking this?)

Also I cannot access the link to SharedServices1 - Open Shared Services Admin site (not clickable), guess it's permissions but I seem to have full site permissions, I think I need SSP-Admin to make more edits to the Search, maybe this is related :s

Both Search Servers are runnig, I have tried everything I can think of to fix this and allow the Search Centre to work.

I am running Sharepoint 2007 on SQL Server 2008.

Not able to edit user profile in share point


Hi ,

I am new to share point, and not able to edit user profile data in sharepoint2007. I am getting an error "can't edit the property try with user profile services".

I have ran full crawl still getting the same problem. Also let me know how I can fetch data from Active Directory to share point 2007.



Quick Note: Working with the SharePoint 2010 Ribbon User Interface

Learn to extend the Microsoft SharePoint 2010 ribbon by adding a custom button that executes server-side code.

Video: Enhancing the SharePoint 2010 Search User Interface

SharePoint has opened the search UI so that you are now able to extend the out-of-the-box search Web parts. Search also provides many places for you to create custom code to produce a rich search experience for your users. (Length: 2:04)

SharePoint BDC - User Profile - 1:Many

Hi everyone, sorry for the long post, but I thought it'd be better to give all the information just in case there's a better way to do this. Basically, here's our scenario, we have a requirement to have Customers searchable in the people search (as in which employee sells to which customers).  We have a sql database with 3 tables: - employees(columns: userid, username, displayname); - customers(columns: customerid, customername); and - employeecustomer(columns userid, customerid) - we also have one view UserCustomer(columns: username, customername) So we've tried to create the BDC Applciation Definition on the view.  Here is the Entity Portion of the Application Definition file: <Entity EstimatedInstanceCount="10000" Name="EmployeeCustomer"> <Properties> <Property Name="Title" Type="System.String">username</Property> </Properties> <Identifiers> <Identifier Name="customer_name" TypeName="System.String" /> <Identifier Name="username" TypeName="System.String" /> </Identifiers> <Methods> <Method Name="Get_EmployeeCustomer_List"> <Properties> <Property Name="RdbCommandText" Type="System.String"><![CDATA[SELECT custo

SharePoint Search not working on one site collection

I am running into some weird behavior with how SharePoint is crawling site/list data.  Let's say our main intranet site is http://www.intranet.com: Most of our older sites are setup with URLs like http://www.intranet.com/sites/sitename .  Crawling is working fine on these sites and I can execute a search and find all of the results I would expect.  At some point recently (before I joined this firm), they made a decision that all new sites would have the URL http://www.intranet.com/SiteDirectory/sitename .  Any sites which fall into this bucket are not being crawled, it would seem. If I check Central Adman>Shared Services>Search Administration, I can see that the first content source being crawled is http://www.intranet.com so I would imagine this crawl should pick up anything under /SiteDirectory/ but it is not.  I also checked the Crawl Settings on this page and it is set to "Crawl everything under the hostname for each start address".  Lastly, I see that there were only 21 errors in the last full crawl but none of these errors apply to a /SiteDirectory/ site. In short, what could be causing the crawl to apparently skip all of the sites within /SiteDirectory/ and how can this best be fixed?

Profile User Synchronisation Service

Hi, I have a problem to open Profile User Synchronisation. It doesn' work, I tried to verify this problem by opening services.msc but It show an error when I try to restart the service : Error 1068 The service or the groupe of dependency can't be restarted.   Thanks

Long execution times for Search pages even after 4th or 5th user has accessed the same page.

Hi Guys We have a Sharepoint 2010 farm with two NLB web fronts ends, a Index server and a two box SQL cluster. The same problem also occurs on a dev box which has Sharepoint 2010 and SQl server running on the same single box. When a user access the search or advanced search page we get long execution times of between 15 and 30 seconds.  The strange thing is that the user will have a slow response the first time, then they are fine for a period of an hour or two and then they hit the slow response again.  Below i have copied info from the developer dashboard.  Does anyone have a suggestion of where to start tackiling this issue. Thanks 1st Run.  (Note this site was accessed by 3 other users first) BeginRequestHandler (0.05 ms) PostAuthenticateRequestHandler (0.06 ms) PostResolveRequestCacheHandler (18.48 ms) GetWebPartPageContent (16.87 ms) GetFileAndMetaInfo (15.57 ms) GetWebPartPageContent (35.25 ms) GetFileAndMetaInfo (34.99 ms) GetWebPartPageContent#1 (89.27 ms) GetFileAndMetaInfo (89.06 ms) Add WebParts (3975.17 ms) Search Box (3974.54 ms) SearchBoxEx.OnLoad (15426.56 ms) SearchBoxEx.HandleContextualScoping (0.01 ms) UserPreference.GetUserPreference (15418.52 ms) UserPreference.GetFromCache (0.04 ms) SearchServiceApplicationProxy.GetUse

User profile in Windows 7

I have Windows Server 2003 and when attaching my Windows 7 Professional machine, it will not create the profile. When logging on it loads a temporary file.  I tried changing to local profile but it will not let select it.  Any suggestions would be greatly appreciated.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend