简体   繁体   English

共享点列表上显示的项目将取决于用户

[英]The items to be shown on the Sharepoint list will depend on the user

Can you please help me on how will I able to filter the items of my list in Sharepoint depending on the user logged. 您能否帮助我,如何根据登录的用户在Sharepoint中过滤列表中的项目。 The items that need to be shown will also depend to the team where the user belongs. 需要显示的项目还取决于用户所属的团队。

Thanks in advance! 提前致谢!

So the image below shown is my list. 因此,下面显示的图像是我的列表。 For example, User 1 and User 2 both have Full Control permission on my list. 例如,用户1和用户2都对我的列表具有“完全控制”权限。 But User 1 should only see entries for DETE team. 但是用户1应该只看到DETE团队的条目。 And User 2 should only see entries for Service Control Team. 用户2应该只看到服务控制团队的条目。 在此处输入图片说明

Showing which items to be shown based on the current user can be done using out of the box SharePoint permission features. 可以使用现成的SharePoint权限功能完成基于当前用户显示哪些项目的显示。

The simplest and short answer is to set unique permissions on each item in your list to specific users or groups by breaking permission inheritance for the SharePoint list. 最简单,最简短的答案是,通过中断SharePoint列表的权限继承,为特定用户或组设置列表中每个项目的唯一权限。 Once the inheritance is broken, you can then specify your unique custom permissions on each item in your list. 继承中断后,您可以为列表中的每个项目指定唯一的自定义权限。 Then SharePoint will only show what is available for the user to see. 然后,SharePoint将仅显示可供用户查看的内容。 If you are not familiar with security inheritance in SharePoint, then I suggest reading up on this topic as this is a foundation of SharePoint security. 如果您不熟悉SharePoint中的安全继承,则建议您阅读本主题,因为这是SharePoint安全的基础。

To do this, use the " Shared With " -> " Advanced " options from the ellipsis menu on that item, then you can break permission inheritance on that item. 为此,请使用该项目的省略号菜单中的“ 共享对象 ”->“ 高级 ”选项,然后可以中断该项目的权限继承。 (If you don't see the tool ribbon, then change the "List Experience" setting to classic via list settings -> advance settings -> list experience) (如果看不到工具栏,请通过列表设置->高级设置->列表体验将“列表体验”设置更改为经典

在此处输入图片说明

Then break the permission inheritance on the item: 然后中断对项目的权限继承:

在此处输入图片说明

Then you can grant permission to specific users or groups: 然后,您可以将权限授予特定的用户或组:

在此处输入图片说明

This can work okay for a small list but is a management nightmare for a large list. 对于一小部分列表,这可以正常工作,但对于大列表来说,这是管理的噩梦。

One alternative is to use " Folders " and set the appropriate permissions on there instead. 一种替代方法是使用“ Folders ”,并在那里设置适当的权限。 Then you can add/remove items from the folder for easier management to control which users can see what. 然后,您可以从文件夹中添加/删除项目,以便于管理,以控制哪些用户可以看到什么。 There are pros and cons with this approach but this method has worked for me. 这种方法各有利弊,但是这种方法对我有用。 What is nice is that you can display the items with or without folders using the Folder display options when creating a custom view. 很好的是,在创建自定义视图时,可以使用“文件夹”显示选项显示带有或不带有文件夹的项目。

Another solution is to create a custom workflow that will apply the proper item security permissions for you when an item is created in the list. 另一个解决方案是创建一个自定义工作流程,当在列表中创建项目时,该工作流程将为您应用适当的项目安全权限。 This is good to automatically set the permissions for you without doing any work but does add maintenance duties if permissions needs changing such as new users, remove users or modifying users. 无需执行任何工作即可自动为您设置权限是很好的,但是如果需要更改权限(例如新用户,删除用户或修改用户),确实会增加维护职责。

Setting up the proper security groups and users should give you the flexibility needed for your security requirements. 设置适当的安全组和用户应为您提供满足安全要求所需的灵活性。 It is always good practice to use groups when possible. 在可能的情况下,最好使用群组。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM