Different Ways to enable User Information List in SharePoint 2013

enable user information list sharepoint
InfoPath alternatives for form designing SharePoint

In this post we will discuss various different ways to enable user information list in SharePoint 2013, SharePoint 2016 or SharePoint Online. Here we will disucuss about below topic:

What is User Information List in SharePoint 2013?
How to access user information list using browser?
How to enable user information list using SharePoint 2013 server object model?
How to enable user information list using Client Side Object Model (CSOM)?
How to enable user information list using PowerShell?

OK, for those who doesn’t know what is user Information List, It’s one of the lists in SharePoint, provided by Microsoft, which is of great importance.

You can find a great description of User Information List on MSDN, yet if explained in brief I would say it’s a list which stored the Users and their information. The information of the users include details like their Name, Email ID, Display Name, Login Name, Job Title, About User, and Department. Whenever a user is added to the site, he/she appears in the User Information List. The User Profile Services sync the user data into the User Information List from Active Directory.



Why and how this user Information List comes in picture?

There are cases when things don’t seem to work and we start getting Error 401: Unauthorized, then usually we go to check the user permissions on the site, checking that the permissions are in place, now from this point instead of being clueless we should check if the user is present in the User Information List. Now here comes the question of where to find the User Information List. Well, the User Information List is one of the some hidden lists on SharePoint. To view the User Information list we will see in how many different ways we can view the list.



Ways to fetch user information list in SharePoint:

One can see the User Information List only if he/she is an Admin.

Access  User Information List via Browser:

You can access the user information list through the browser by navigating to >> /_catalogs/users/simple.aspx

Ex. http://win-eqalhem27jl:7575/sites/one/_catalogs/users/simple.aspx

When accessing the user information list through a browser the list doesn’t remain in the site contents, it stays there temporarily.

So here I have made an effort to make the user information list stay in the site contents permanently as long as we don’t hide it back.

Access user information list using SSOM (Server Side Object Model)

We can enable user information list using SharePoint 2013 server object model.

Code.

static void Main(string[] args)
{
var siteUrl = “http://win-eqalhem27jl:7575/sites/one/”;
using (SPSite site = new SPSite(siteUrl))
{
using (SPWeb web = site.OpenWeb())
{
SPList list = web.Lists[“User Information List”];
list.Hidden = false;
list.Update();
}
}
}

Access user information list using CSOM (Client Side Object Model)

We can access user information list using client object model (csom) in SharePoint 2013/2016.



Code.

static void Main(string[] args)
{
var siteUrl = “http://win-eqalhem27jl:7575/sites/one/”;
using (ClientContext clientContext = new ClientContext(siteUrl))
{
NetworkCredential _myCredentials = new NetworkCredential(“administrator”, “admin@123”);
clientContext.Credentials = _myCredentials;
Web web = clientContext.Web;
List list = web.Lists.GetByTitle(“User Information List”);
clientContext.Load(list);
list.Hidden = true;
list.Update();
clientContext.ExecuteQuery();
}
}

Enable user information list using PowerShell in SharePoint

We can also enable user information list using PowerShell in SharePoint 2013. We can use Windows PowerShell ISE.

Code.
$web = Get-SPWeb “http//siteURL”;
$list = $web.Lists[“User Information List”];
$list.Hidden = 0;
$list.OnQuickLaunch = $true;
$list.Update();

enable user information list url
enable user information list url

Final Output:

enable user information list sharepoint
enable user information list sharepoint

Note: When you enable the User Information List on the Site, the list is made available but the icon for the list is not found in the _Layouts.
You can see in the above image I have highlighted the List. This is an issue with the User Information List in SharePoint 2013, yet it is possible to add a custom image on the list.

I found out that there is this image lsers.gif given as the icon for User Information List. But you can’t find this image in the IMAGES folder inside the 15 hive folder. Check the screenshot below.

enable user information list sharepoint 2013
enable user information list sharepoint 2013

Hope this article was helpful.

Similar SharePoint 2013 Tutorials


About Akash Kumhar

I am Akash Kumhar a SharePoint Consultant.

View all posts by Akash Kumhar →

Leave a Reply