.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Setting permissions to Items/Views in a list

Posted By:      Posted Date: September 10, 2010    Points: 0   Category :SharePoint
I have a list containing 2 FY's data. I need to make one of the FY year's data as read-only. Can i create a view filtering only this data and make only this view as read-only or do i need to edit permissions of individual items of the filtered FY and set it as read-only. Is there any other way of doing this?

View Complete Post

More Related Resource Links

Customized list views and permissions to specific group users

Hi, I have created a custom list with 20 field/columns in wss3.0. I had four user groups(group1, group2,....3.....4) in my site collection with various levels of permissions. I have created four custom views (Group 1 view, Group2 view,...etc)in my list. Each view contains only certain fields out of 20. For example group 1 view contains field 1, 5, 7,10 and 13 of every item in my list.  My requirement is that when a user login, who is a member of group1. he should be able to view only Group1 view fields. He should not able to view other field/columns. I tried creating another field/column called as restricted users and wrote group names in that. In the View edit page I selected " show item when the column 'restricted users' is equl to [Me]. But I did not get it. Kindly help it out any one either programmatically or UI based. Thanks   

List View Permissions and Views for Web Parts

My fellow developers and I are going in circles a bit with our new Sharepoint 2010.  This question probably has several different answers.   I have a list of grades and comments that our Team Leaders want to create and save on Sharepoint.  When saved, the user who was graded should be able to see their own grades.  Its a pretty simple requirement and I'm 90% of the way there.   I created a list with the required fields, and two separate views.  The first view filters the list by the user's name so they see on their grades.  The second view shows all grades in a grouped order by the person who assigned the grade.  To make this second view more readable, I added some formatting with Sharepoint Designer 2010.  It looks nice.   Here's where the speed bump occurs.  I create a web parts page for each view.  The page showing only the user grades works as expected.  The other page, however, shows the list in a view that I didn't create.  No matter what view I select from the "Edit Web Part" menu, it always shows this strange view.  If I select the list, it says its current view is "Default".  The second view I created is set as default, but its not the view I see.  If I change the current view from list menu to the second view specifically, it shows up correctly. &n

how to change the permissions list items using the workflow?

How to change the permissions list items using the workflow? Or how to instull SPDActivities on sharepoint 2010?

How to properly configure permissions so users can view, add, edit, and delete list items, but not w

I am trying to figure out how to properly setup security so that it can be configured at the top-level, and then inherited all the way through. Here is what I would like to do: Each user can view, add, edit, and delete list items - but, users cannot modify or delete web part pages. The only way I know how to do this is set Contribute from the top-down, and then go into each Site Pages library and set Read access. The problem is that I have 100 sites, and I was hoping there was a way I could set security at the top, and inherit downward. Rather than having to go into all 100 Site Pages library and set Read access. Is there a way to do this? Thanks in advance.

Setting permissions on specific items


I'm following a Books Online tutorial for setting up permissions.  I'm on to the 3rd and final stage of the tutorial, the part where I set specific permissions for users to a folder or a report.  (Here's the web page: http://msdn.microsoft.com/en-us/library/aa337494.aspx)

I'm confused about these instructions from that page:

To create a role definition for navigating folders

  1. In SQL Server Management Studio, connect to a report server, and then expand the report server node.

  2. Open Security folder.

  3. Right-click Roles and select New Role. The New User Role dialog box appears.

  4. In Name, enter Folder Navigation.

  5. In Task, select View Folders.

  6. Click OK.

Assuming step 1 refers to the ReportServer database, should it be a database role or an application role?  And where do I find "Task"?  There must be several errors in this page.  Could somebody please clarify these instructio

List views - Can I create a filter for tomorrow's items?

I'm setting up some views for a list, and I've already got "John's Tasks for Today" created.  Is there a way to create a view that shows the items that are due tomorrow?  I tried to do this with a filter.  "Show the items when column (Due Date) (is equal to)" and then I typed [Tomorrow] in the field.  I get the error message "Filter value is not in a supported date format."

Setting custom task list permissions


I am trying to use code to set permissions for a custom task created in Windows WF. I have been trying to use the following method to access a specific task in the task list and add a role to that task:

        public void setTaskPermissions(Guid taskGUID, string loginName)
            SPSite Site = new SPSite(ConfigurationManager.AppSettings["DefaultSourceURLStandard"]); 

            SPWeb Web = Site.OpenWeb();

            //Get Role Definition from SPWeb

            SPRoleDefinition RoleDefinition = Web.RoleDefinitions.GetByType(SPRoleType.Contributor); //or whichever SPRoleType you choose

            //Get SPListItem

            SPList List = Web.Lists[ConfigurationManager.AppSettings["LeaversTaskListName"]]; //e.g., "Announcements"
            SPListItem ListItem = List.Items[taskGUID];

            //Create new Role Assignment
            //Add Role Definition to Role Assignment's Role Definition Bindings

            //add role specific to user
            SPRoleAssignment specificRole = new SPRoleAssignment(loginName,"","","");

Setting the permissions for the list item in sharepoint 2010 list


Dear All,

            This is siddiqali working sharepoint 2010 as developer .My task is to enable and disable the lists by setting permissions for sharepoint lists .I have generated the list permissions successfully ,But can any one tell me how to generate the permissions for the list items.

  Example; I have the list items  such as "ID,Name,Class,Number"  when the student opens the list the filed number should not be visible for  the student .All the fields should be able to view only by admin.


I hope some one will  respond to me and solve my problem .





Mohammad Siddiqali

list of document library items' permissions


Hi All,

There is a library (SharePoint Server 2007)

There are many files in this library (with personal permissions).

QUESTION: How to obtain the list of these files with their permissions.


Creating Sites/Lists/List Items under Current User Context in SharePoint By Using SPUserToken

Usually we do this by performing the action under RunWithElevatedPrivileges method and updating the listitem using SPListItem.SystemUpdate() method (see here). but this approach has its own flaws like (RunWithElevatedPrivileges will run under system account, we cannot use SystemUpdate for SPSite,SPWeb,SPList, since it runs under system we will "CreatedBy" by as SystemAccount).

Get pixel format, raw format, property id list and property items image in VB.net - C#.net.

n this simple article you will learn that how we can get pixel format, raw format, property id list and property items image in VB and C#.net.

Get Pixel Format:

Image consists of pixels to get the format of the pixel we have a property named pixel format. This property returns an enumeration of pixel format. This enumeration tells the pixel format.

To demonstrate make a window application. Drag one button and a picture box on form.

Now write the following code on Button click event:

Way of adding items in Drop Down List or List Box using Javascript

The article Way of adding items in Drop Down List or List Box using Javascript was added by raja.s on Sunday, June 06, 2010.

Hi,script type="text/javascript"> function AddItem(Text,Value) { // Create an Option object var opt = document.createElement("option"); // Add an Option object to Drop Down/List Box document.getElementById("DropDownList"

How to Customize the Add Comment 'Items on this list require content approval...' notification in


WSS 3.0:

If content approval is turned on, the Add Comment section displays a fairly ugly notification. Is there any way I can customize that section through e.g. CSS or SPDesigner?

I'd like to change at least the text, and preferably the yellow exclamation image, and also the background if possible.

Setting permissions of a specific SharePoint workflow


We have a very simple workflow whereby an document placed in a public library (INBOX) is moved it to a private library (VERIFY) and then deleted. The workflow works correctly when someone who has access to the VERIFY library drops a record into the INBOX library.  However it does not work when the user does not have access to the VERIFY library.

I was told that I need to "set the AD group associated with a specific SharePoint workflow" but cannot find any reference to this in SPD.



Workflow field not being added to list or views when adding a workflow


This problem just started happening in my entire site collection.  Anytime I associate a workflow to any list or doc lib the Workflow column that shows the status and links to the history is not beind added to the list or any views and is nowhere to be found.   Here's exactly what I'm doing:

1.  Go the List settings -> workflow settings -> add a workflow (for this example the OOB approval workflow)

2.  After adding I go to the List, the workflow column doesn't exist.

3.  I go to "modify view", and the workflow column is not listed in the available columns.

Any help is greatly appreciated.

Add Items to List with BDC Column via Web Services

I really hope this is possible.  I am trying to add items to a list that have a BDC column as one of the fields.  Here is the code I am using in the Batch

batchElement.InnerXml = "<Method ID='1' Cmd='New'>" +  
"<Field Name='Title'>Hello World</Field>" +  
"<Field Name='bdc'>BDCIdentifier</Field>&

Display tooltip for Sharepoint list items


Hi All,

I am using MOSS 2007 and my requirement is to show tooltip when I hover the mouse over the title column for each item. I am planning on storing the tooltip string for each listitem in a seperate column. Is there a way to do it. I am sure there is. Any help is greatly appreciated.

Thanks in advance!




ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend