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

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

User Information List and Searching

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :C#


On the Userdisp.aspx I have some code to redirect to a custom profile page. My issues is that when searching for a user that exists in the User Information List the search does not pick up that user.

I have checked that the list is searchable and the required permissions are in place.

So the question is does Wss3 search actually search that list? If so then what else could be stopping it picking up those users.



View Complete Post

More Related Resource Links

User information list properties SP Foundation 2010

When trying to view properties of user information list in SPD 2010, I get the following error "SharePoint designer cannot display the content of this view (...)" I am logged in as administrator for both farm and site. I can view content of the list in a browser, but I cannot access the list as a lookup column. It works with WSS 3/SPD 2007 on another server.

User information list properties SP Foundation 2010

When trying to view properties of user information list in SPD 2010, I get the following error "SharePoint designer cannot display the content of this view (...)" I am logged in as administrator for both farm and site. I can view content of the list in a browser, but I cannot access the list as a lookup column. It works with WSS 3/SPD 2007 on another server.

Update all Properties in the User Information List after restoring a site collection to a new domain


hi All

I moved a site collection (content db) from one domain to another. After the site collection was restored i ran the stsadm -o migrateuser -oldlogin -newlogin. The result was that the login id of the user in the source domain was replaced with the login in the destination domain.

However the rest of the properties in the User Information List (paricularly interested in the Email) was not updated.

How can i get all the properties in the User Information List with values in the new domain

Thanks in Advance


search current logged in user's information in sharepoin list


hi guys,

in order to prepopulate some user information, i used query to search the sharepoint list. my question is how to search loggin user's info in the list.

i used following testing query function. it works fine. however, it can only search specific text, cannot be changed according different user.

SPList IsExist;
                    IsExist = SPContext.Current.Web.Lists["somelist"];
                    SPQuery query = new SPQuery();
                    query.Query = @"
                                    <FieldRef Name='First_x0020_Name'/>
                                    <Value Type='Text'>XXX</Value> 
                                    <FieldRef Name='Last_x0020_Name'/>
                                    <Value Type='Text'>XXX</Value> 
                    SPListItemCollection found = IsExist.GetItems(query);

sharepoint 2010 user information list custom property



i added a custom property to the user list and wish to display it. when i go to "user info list" > "list settings" > "edit view" i see 39 properties to choose from. how can i remove these default values and add my own properties to the view.




WSS vs MOSS User Information List



I have a custom list with one of the columns being a lookup to a user. Now I have been using the list names "User Information List" to gather information about this user in WSS. However when I moved my code to a MOSS 07 server, I noticed that this list does not exist. What alternate list could I use to query information about the user. Below is some sample code that works on WSS.

Code Snippet

SPList listu = webSite.Lists["User Information List"];
SPListItem userItem = listu.Items[0];
string userEmail = (string)userItem["EMail"];


Difference between UserProfile & User Information List Property Values?


If I checks the FirstName & LastName Property values in UserProfile it has someValue however the same properties does not have anyValue in User Information List, what would the reason behind this?

Even I could see comma (",") separated value for some Field in UIL however the same value is in UserProfile without comma (",") ....

ProfileSync and/or QuickSync will update the UIL with same Information avail in UserProfile, isn't it? In that case both should have the same value, right?

Karthikeyan | MCTS | India

Creating Sites/Lists/List Items under Current User Context in SharePoint By Using SPUserToken

Usually we do this by performing the action under RunWithElevatedPrivileges method and updating the listitem using SPListItem.SystemUpdate() method (see here). but this approach has its own flaws like (RunWithElevatedPrivileges will run under system account, we cannot use SystemUpdate for SPSite,SPWeb,SPList, since it runs under system we will "CreatedBy" by as SystemAccount).

Advanced Basics: Remembering User Information in Visual Basic .NET


Many applications need to store user-specific settings to be persisted between sessions. But how do you go about saving and restoring these settings in your Microsoft® . NET Framework-based application? It's not all that easy to find the correct answer.

Duncan Mackenzie

MSDN Magazine April 2005

how to store User Rights Information in asp.net



Please guide me how to store user rigths inforamtion in asp.net MVC Application

Here my User permission  information look like

UserID LoginID          UserName             Page  Permission     Role 

yahoo@yahoo.com Mohammed Askar Quote Edit                Admin 
yahoo@yahoo.com Mohammed Askar Quote Delete            Admin 
yahoo@yahoo.com Mohammed Askar Quote Verify             Admin


gamil@gamil.com   Mr. X                      Quote Cancel  &nbs

Getting user control in NewForm.aspx of the list


I have designed a user control where i have placed some custom fields as per my requirement now my next step is as soon as user clicks 'Create' under Site Settings it should take him to my user control page instead of Newform.aspx default page of the list.Just let me know your suggestions to achieve this as it would help me a lot

Thanks & Regards,


How to Set a list item's createdby or modifiedby field as a User(deleted from AD)



I have to migrate data from SQL DB to SP list. But its old data and some users who created/modified the record has been deleted from the AD. Now I need to set the CreatedBy / ModifiedBy Field of the item accordingly. How to achieve this?

And when I tried to modify the "Editor" and "Author" field through Object Model, it works. But its not working through Webservice. What is the reason behind this?

Please help me find an optimal solution for this...


Thanks and Regards,

/* John JB */

SQL User Permission (No answer found by searching)

Hello all!   I'm hoping someone will be able to answer my simple question!   Previously, I've run the below script to give one user access to their db in SQL management studio but nothing else. use [someDB] -- use the real db name go sp_changedbowner 'theUser' -- use the new username go 4. Next, deny the new user "public" access to ALL databases: use master go deny VIEW any DATABASE to theUser go   However I now need to add an additional user with view on permissions to the database and can't figure out how to do it. I'm sure it's simple but my SQL knowledge is at a low level.   Many thanks, Lee.

Collecting extra information using Create User Wizard

 I am trying to collect extra information about a user when the user account is created using the Create User Wizard. This info will be stored in a new table in the standard ASP membership SQL database. I have read several books and loads of online tutorials on the subject and they all take different approaches and seem to make the process hard work. Is there any reason why I can't add an SQL datasource and a number of textboxes  to the wizard step, 'connect' the values from the textboxes to the Insert Parameters and then put an Insert Statement in a suitable event handler to cause the insert? If this is possible what would be the best (ie simplest) way to 'connect' the textboxes to the insert parameters?   Regards Andy

searching a list box

Hi All, I am trying to search a list box by adding a text box next to it. in the textbox_textchanged I added below code 'Retrieve the item's listindex Dim i As Integer = List1.FindString(Text1.Text) 'highligting the matched ones List1.SelectedIndex = i   But I am getting Below error Error 1 'FindString' is not a member of 'System.Web.UI.WebControls.ListBox'  How can I resolve this?

User Alert Management for a specific list versus entire SharePoint site?

It seems that to be able to manage User Alerts, one must have Full Access to the entire SharePoint site - and then use => Site Settings > User Alerts. Ideally, I would like to be able to grant access to users to only be able to manage alerts for a specific list. Is this possible (without having to do any programming) and, if so, how? If such access is only available at the site level, I will simply create a Permission Level that allows one to only "Manage Alerts" Thanks in advance for any assistance. Dave

searching the list box

In a button click I will make apanel visible inside that Panel I have textbox, listbox with data(Data already populated from the stored procedure)  Now What I am trying to do is If i type some thing in the text box like 'kris' all the items that matches 'kris' should get selected in the list box. Please see my code below Protected Sub TextBox1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged        Dim dr As SqlDataReader        dr = SearchUsers(TextBox1.Text)    End Sub   right now dr is bringing all the matched rows and I am not sure how can I make the listbox to select all the retrieved rows .aspx <asp:listbox id="ListUsers" runat="server" DataValueField="UserID" DataTextField="Name" SelectionMode="Multiple"></asp:listbox><BR> //The SP is also retrieving userid and Name.
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