ComeratedGroups Spweb的集合吗?
-
10-12-2019 - |
题
我很难了解在快速发射中出现的组的站点中添加spgroup的目的,将spgroup添加到相关的群组集合(或其相应的属性袋项)。
这种混乱不适用于相关的[访客|所有者]组属性;那些很清楚。
这些相关组提供的其他目的,如果有的话,请提供?这是另一种方法可以在打破继承时在站点级别定义角色?
谢谢。
解决方案
Groups
return all groups which have security roles assigned to the current site.
AssociatedGroups
return all groups visible in the left menu of thePeople and Group page
. Those groups may not have access to the current site (if the security settings do not inherit from parent site). In this case, some of them will not be listed in theGroups
property.To view the difference, in a subsite, create a new group without giving any permission. The group will be visible in the
AssociatedGroups
and Left menu, but will not be listed inGroups
or Site Permissions page.
Reference: The accepted answer on the question SPWeb.Groups vs. SPWeb.AssociatedGroups
其他提示
...in addition to Benny's - the associated groups are also used to "link" a sub-site security to a certain SP-group. That is also because groups, as permissions levels as ONLY stored at the site collection level.