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 http://archive.ceu.edu/store.php?treat=37signals-backpack-alternatives-to-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 https://georgehahn.com/playboy/lamictal-hhv-6/15/ http unholymess blog beer brewi... adhd research paper conclusion https://sugarpinedrivein.com/treatment/how-long-for-levitra-to-kick-in/10/ https://vabf.org/reading/asa-annotated-bibliography/250/ 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 https://vabf.org/reading/i-need-help-with-my-social-work-dissertation/250/ 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;
lib.Update();
}
}

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

Share

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