Item Level security for Picture Library
Hi,
i need to apply Item Level security for Picture library so that only Item created Users can be able to delete that item.
Please help me on this
Regards,
Vinay kumar
June 8th, 2010 5:18am
Unfortunately you cannot set Document Libraries to use "Edit their own" settings as you do for list libraries.
I am using a third party tool to achieve this called Titus Meta Data Security. You can find it here:
http://www.titus-labs.com/software/sharepoint/metadata.php
It's quite handy because it helps you create item level security based on meta data (e.g. the name of the person that created a file), but unfortunately it's not free. So it will probably be only worth it for you if you plan to use it quite extensively across
your site.
I don't think there is any other way of automatically achieving what you want to do.
Free Windows Admin Tool Kit Click here and download it now
June 8th, 2010 7:45am
1) One way is to, Create an eventhandler on this picture library and onItemAdded event , reset the permisions using WSS object model on this item , by giving item creator an edit access and keep read only access to other groups.
2) Another way is to manually change the permision on item by selecting an item and going to "Manage Permissions" on item.
Regards,
Manvir
June 8th, 2010 11:16am
Thanks Manvir
I shall try the first one -creating event handler
rgds
Vinay
Free Windows Admin Tool Kit Click here and download it now
June 8th, 2010 12:29pm
Hi ,
Call the method below with these parameters
//SPRoleDefinition roleDefinition = web.RoleDefinitions.GetByType(SPRoleType.Contributor); // for Edit Access
//SPRoleDefinition roleDefinition = web.RoleDefinitions.GetByType(SPRoleType.Reader); // for Read access
//SPGroup groupname = web.Groups["GroupName"];
private void SetPermissions(SPListItem lstItem,SPGroup groupname,SPRoleDefinition roleDefinition)
{
using (SPSite siteTaxIssue = new SPSite("Servername"))
{
using (SPWeb web = siteTaxIssue.OpenWeb())
{
SPRoleAssignment rl = new SPRoleAssignment(groupname);
rl.RoleDefinitionBindings.RemoveAll();
lstItem.BreakRoleInheritance(true);
lstItem.RoleAssignments.Remove(groupname);
rl.RoleDefinitionBindings.Add(roleDefinition);
lstItem.RoleAssignments.Add(rl);
lst.Update();
web.Update();
}
}
}Manvir
June 8th, 2010 12:59pm
This can help:
http://www.endusersharepoint.com/2009/07/07/configure-item-level-permissions-for-document-libraries/Juan Pablo.
surpoint.blogspot.com
geeks.ms/blogs/jpussacq
Hiciste tu consulta en HispaPoint?
Free Windows Admin Tool Kit Click here and download it now
June 8th, 2010 11:31pm
jpussacq:
Please do not propose your own posts as answers. It isn't helpful.
Propose the good answers of other people. Wait for someone else to propose your posts.
(Moderator)2010 Books:
SPF 2010; SPS 2010; SPD 2010; InfoPath 2010; Workflow etc.
2007 Books:
WSS 3.0; MOSS 2007; SPD 2007; InfoPath 2007; PerformancePoint; SSRS; Workflow
Both lists also include books in French; German; Spanish with even more languages in the 2007 list.
June 9th, 2010 6:42am
I am sorry Mike, I do not usually do. I figured I could do it. Thanks for the warning. Greetings!Juan Pablo.
surpoint.blogspot.com
geeks.ms/blogs/jpussacq
Hiciste tu consulta en HispaPoint?
Free Windows Admin Tool Kit Click here and download it now
June 9th, 2010 7:23pm


