¿Colección de grupos asociados de SPWEB?
-
10-12-2019 - |
Pregunta
Me está divirtiendo mucho comprender el propósito de agregar un SPGroup a la colección de grupos asociados (o su artículo de la bolsa de propiedad respectiva) de un sitio que no sea el (los) grupo (s) que aparece en el lanzamiento rápido.
Esta confusión no se aplica a la propiedad [Visitante | Miembro | Propietario] Grupo;esos son claros.
¿Qué otro propósito (s), si corresponde, estos grupos asociados proporcionan?¿Es esta otra forma de definir roles en el nivel del sitio al romper la herencia?
gracias.
Solución
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
Otros consejos
...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.