Coleção de grupos associados de spweb?
-
10-12-2019 - |
Pergunta
Estou tendo dificuldade em compreender o propósito de adicionar um SPGroup para a coleção de grupos associados (ou seu respectivo item de bolsa de propriedade) de um site diferente do (s) grupo (s) aparecendo no lançamento rápido.
Essa confusão não se aplica à propriedade do grupo associada [visitante | Proprietário];aqueles são claros.
Que outros objetos (s), se houver, esses grupos associados fornecem?Esta outra maneira de definir papéis no nível do site ao quebrar a herança?
Obrigado.
Solução
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
Outras dicas
...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.