Automatically set list item permission, after new item is created

霸气de小男生 提交于 2019-12-11 16:46:19

问题


We have a SharePoint Team Site (WSS 3.0 not MOSS), that includes Tasks list to records every tasks related to a project. Here's the scenario.

Users :

  • List item
  • Supervisor1
  • TeamMember1
  • TeamMember2
  • TeamMember3

How do we set the permission settings so that

  • Every users (Supervisor and team members) can see any tasks.
  • Supervisors can edit any tasks
  • Team members can only edit their own tasks (tasks that were assigned to them, or created by them)

I was unable to achieve the intended results using standard WSS permission settings, without resorting to manual permission settings on each item in the list. I'm imagining that the automatic solution has to be accomplish using some sort of workflow or trigger.


回答1:


you do not need any workflow or event handlers ( still you can use them for your purpos but they will slow down the performance if you will be having a lot of items)

go to setting --> list settings click on Advanced Settings

in Item-level Permissions in read access select all items and in the same place in Edit access select only their own

and in permissions give list members a contributer role

for the suppervisor you can give him higher permission i think designer will work, or simply you can give him full controle on the list




回答2:


You can set permissions by going to your List, click Settings dropdown. Under Permissions and Management, click "Permissions for this List". Click Actions and select Edit Permissions. Select the User/Group you want the permission to be changed then Click Actions & select Edit User Permissions.

HTH!




回答3:


Create a class that inherits from SPItemEventReceiver and override the ItemAdded method, setting your custom permissions in the overriedden method using the API.

http://blogs.msdn.com/brianwilson/archive/2007/03/05/part-1-event-handlers-everything-you-need-to-know-about-microsoft-office-sharepoint-portal-server-moss-event-handlers.aspx




回答4:


Yes, you would have to write an event handler or workflow that will run upon item creation which would look at these column values and set the item level permissions as such.




回答5:


I recommend you to check this solution: SharePoint Column/View Permission by SharePointBoost (199$)

Through this you can set read only permission to people you want on all the items, Your requirement "Every users (Supervisor and team members) can see any tasks" is solved!

Also you can set edit permission to Supervisors. Second trouble solved!

As Ali said, advanced permission>items level permission can fulfill your last requirement.




回答6:


It seems that you need a workflow to automatically assign permissions based on the user roles or [Assign To] fields. Try the third-part tool Permission Workflow, this may help you to solve the issues.



来源:https://stackoverflow.com/questions/142756/automatically-set-list-item-permission-after-new-item-is-created

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!