مجموعة أسلوب SPWEB؟
-
10-12-2019 - |
سؤال
أواجه وقتا عصيبا في فهم الغرض من إضافة مجموعة صفوفا إلى جمع مجموعات الأسلوب (أو عنصر حق الملكية المعني) لموقع آخر غير المجموعة (المجموعات) التي تظهر في الإطلاق السريع.
هذا الارتباك لا ينطبق على المشترين [الزائر | العضو | المالك] مجموعة الممتلكات؛تلك واضحة.
ما هو الغرض (الأغراض) الأخرى، إن وجدت، هل توفر هذه المجموعات المرتبطة؟هل هذه طريقة أخرى لتحديد الأدوار على مستوى الموقع عند كسر الميراث؟
شكرا لك.
المحلول
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.