I need to know all groups in my site collection... If I use
using (SPSite scSite = new SPSite(fullsite))
{
using (SPWeb scWeb = scSite.OpenWeb())
{
foreach(SPGroup spg in scWeb.Groups)
{
debug += spg.Name + "!!!";
}
}
}
The only group I get are groups which have Permissions on the site... How can I get also the groups that has no permission on the site but exists (and has permission in subsites)? There is an easy way or I have to loop on childs and get new groups from there??
Thank you very much!
/_layouts/groups.aspx
on your rootweb? It lists all groups existing on your site