Friday, May 27, 2011

HOW TO: Unhide the User Information List without Sharepoint Designer

I found that some people receive an error when trying to get to the properties of the User List that is hidden within the _catalogs folder.  I described in a previous entry about how to make this list visible using Sharepoint Designer.

Here is how you can do this same procedure, if you receive the error: Sharepoint Designer cannot display the item error in Sharepoint Designer.

You may need to be the Site Collection Admin to do this procedure:

You will need to update the list through the lists.asmx web service using the udaptelist method.
Use a lists service proxy class and then do the following:


Lists lstService = new Lists(yourserver);
lstService.Credentials = new NetworkCredential(txtName.Text, txtPassword.Text, txtDomain.Text);
xListItems = lstService.GetList("User Information List");
XmlNode ndVersion = xListItems.Attributes["Version"];
XmlNode ndProperties = xmldoc.CreateNode(XmlNodeType.Element, "List","");
XmlAttribute ndTitleAttrib =(XmlAttribute)xmldoc.CreateNode(XmlNodeType.Attribute,
"Hidden", "");
ndTitleAttrib.Value="False";
ndProperties.Attributes.Append(ndTitleAttrib);
//XmlNode ListNode = xmldoc.SelectSingleNode("//ab:List", nsmgr);
XmlNode xListItems1 = lstService.UpdateList("User Information List", ndProperties, null, null, null, null);

No comments:

Post a Comment