In this article we will be seeing how to mask the created by and modified by in the SharePoint list edit and display forms as shown in the following Using C#: using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.SharePoint; using System.Xml;
namespace MaskUser { class Program { static void Main(string[] args) { using (SPSite site = new SPSite("http://serverName:1111/")) { using (SPWeb web = site.RootWeb) { SPList list=web.Lists["cl"]; list.ShowUser = false; list.Update(); } } } } } Using PowerShell: $site=Get-SPSite "http://serverName:1111/" $web=$site.RootWeb $list=$web.Lists["cl"] $list.ShowUser=$false $list.Update()
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: