Friday, January 27, 2012

Masking fields in SharePoint 2010 list and libraries

I came across to a situation where people wanted to enter the list items and upload the documents but would not like see their names in them. They also did not want anonymous access to list or library.

So now what can be the solution? Then I read about the PowerShell and came to know one technique that we can imply to do this.

Here is a classic example. I have one customer list and after using following command in PowerShell, I got what I wanted.

And here is the result

You can also use the SharePoint object model to set the same property. Use SPList.ShowUser property to perform the same operation where SPList is your list object.

I hope you like this trick.

No comments:

Share your SharePoint Experiences with us...
As good as the SharePointKings is, we want to make it even better. One of our most valuable sources of input for our Blog Posts comes from ever enthusiastic Visitors/Readers. We welcome every Visitor/Reader to contribute their experiences with SharePoint. It may be in the form of a code stub, snippet, any tips and trick or any crazy thing you have tried with SharePoint.
Send your Articles to with your Profile Summary. We will Post them. The idea is to act as a bridge between you Readers!!!

If anyone would like to have their advertisement posted on this blog, please send us the requirement details to