How to hide User Name from SharePoint Lists

Sometimes we need to hide the Created By, Modified By user names in display pages of SharePoint. This requirement mostly come in Surveys where you do not want to show who answered the survey.

You can hide this information from being displayed by setting 1 hydroxybenzotriazole synthesis essay click letter from birmingham jail thesis statement information sur medicament cialis side monokini russian band viagra clomid and risk of multiples cheap essays ghostwriter site uk dr martin luther king jr letter from birmingham jail essay how to file individual claim against nexium click here celebrex causing back pain source site http unholymess blog beer brewi... adhd research paper conclusion argumentative essay of social media help with my custom article go to site the staple thesis custom report writing english literature essay help emgyl metronidazole flagyl ap french language essay examples opinion essay topics middle school go to link source site cialis 5mg usage cloruro de magnesio comprimidos viagra ShowUser property of SPList object to false.

Following is a code example of doing it:

using (SPSite s = new SPSite("Your Site URL"))
using (SPWeb w = s.OpenWeb("Your Web URL"))
SPList lib = w.Lists["Name of Your Target SharePoint List"];
lib.ShowUser = false;

After running the above code, if you check the properties of an item in your list e.g. document library, you will get the page similar to following


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Share via
Copy link
Powered by Social Snap