SharePoint:您无法授予有限的访问权限级别

发布于 2024-09-03 04:27:11 字数 645 浏览 4 评论 0原文

我的团队实现了一个 UI,用于向特定 SharePoint 列表上的用户分配/撤销权限级别。 UI 提供“撤消”功能来恢复用户在通过 UI 更改之前所拥有的权限。

现在,如果用户具有“受限访问”权限级别,则会出现问题:当您对 UI 进行更改时,此权限级别将被删除。当尝试撤消时,应再次添加权限级别,这会导致

您无法授予用户有限的访问权限级别。

当用户有权访问网站下的某些实体时,SharePoint 会自动授予该权限级别。无法手动授予。然后,该权限级别将被站点中的所有列表继承。但是,在打破列表上的继承后,我可以手动撤销该权限,只是之后我无法重新授予它。

因此,SharePoint 非常特别地对待该权限级别,我想知道如何在我们的撤消功能中解决这个问题。

我的问题:

  • SharePoint 仅在网站级别授予此“有限访问权限”,并且下面的所有列表仅通过继承意外包含该权限,我是否理解正确?
  • 该权限级别对列表有任何影响,还是仅适用于网站本身?
  • 那么,当用户单击“撤消”时,仅将其从列表中删除并且不再添加它是否会保存,因为它无论如何都没有效果?

My team implemented a UI to assign/revoke permission levels to users on a certain SharePoint list. The UI supplies an "undo" feature to restore the rights the user had before they were changed through our UI.

Now there is a problem if the user had the "Limited Access" permission level: This permission level is removed when you do a change over the UI. When trying to Undo, the permission level should be added again, which leads to a

You cannot grant a user the limited access permission level.

SharePoint grants that permission level automatically when a user gets access to some entity beneath the site. It cannot be granted manually. This permission level is then inherited by all lists in the site. However, after breaking inheritance on a list, I can revoke the right manually, only, I cannot re-grant it afterwards.

So SharePoint treats that permission level quite particularly and I'm wondering how to work around that in our undo feature.

My questions:

  • Did I get it right that this "limited access" is granted by SharePoint on the site level only, and all the lists beneath only contain that accidentally through inheritance?
  • Does that permission level have any effect at all on a list, or does it only apply to the site itself?
  • So, would it be save to just remove it from a list and do not add it anymore when the user clicks "undo", since it has no effect anyway?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

无悔心 2024-09-10 04:27:11

我敢于回答我自己的问题,仅供未来读者参考:

根据微软的文章权限级别和权限,

受限访问权限级别
无法自定义或删除。

(...) Windows SharePoint Services 3.0
自动分配此权限
用户和 SharePoint 组的级别
当您授予他们访问权限时
您网站上的对象需要
他们有机会进入更高的层次
他们没有的物体
权限。例如,如果您授予
用户访问列表中的项目并且
他们无权访问该列表
本身、Windows SharePoint Services
3.0 自动授予他们对列表以及网站的有限访问权限,
如果需要的话。

实际上,这意味着:

  • 如果您可以删除它,那只是因为它已被继承并且在该特定列表中没有任何意义。
  • 如果稍后用户被授予对某个列表项的某些权限,因此他需要列表上的有限访问权限,SharePoint 将负责再次添加它。
  • 总结:无需担心删除或重新添加该访问级别。

I dare to answer my own question just for reference for future readers:

According to Microsoft's article Permission levels and permissions,

The Limited Access permission level
cannot be customized or deleted.

and

(...) Windows SharePoint Services 3.0
automatically assigns this permission
level to users and SharePoint groups
when you grant them access to an
object on your site that requires that
they have access to a higher level
object on which they do not have
permissions. For example, if you grant
users access to an item in a list and
they do not have access to the list
itself, Windows SharePoint Services
3.0 automatically grants them Limited Access on the list, and also the site,
if needed.

In practice this means that:

  • If you can delete it, that's only because it has been inherited and has no meaning on that certain list.
  • If later on a user is granted some permissions to a certain list item, so that he needs the Limited Access on the list, SharePoint will take care of adding it again.
  • Summarized: No concerns to remove and not re-add that access level.
凯凯我们等你回来 2024-09-10 04:27:11

删除对顶级站点具有有限访问权限的用户实际上不应删除他们对下面的列表或库的显式访问权限(权限已损坏),但 MS 在上述文章中确实说过:

但是,例如,要访问列表或库,用户必须有权打开父网站并读取共享数据(例如网站的主题和导航栏)。无法自定义或删除受限访问权限级别。

这表明应在站点权限上声明用户的受限访问权限。我认为在做出任何假设之前最好先在您的网站上进行测试。

Removing a user with Limited access on the top level site should not actually remove their explicit access on the list or library below (with broken permissions) but MS do say in the above mentioned article:

However, to access a list or library, for example, a user must have permission to open the parent Web site and read shared data such as the theme and navigation bars of the Web site. The Limited Access permission level cannot be customized or deleted.

This suggests that the user's Limited access should be declared on the site permissions. I think its always best to do a test on your site first before making any assumptions.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文