Hello,
I need to retrieve list of all sites (and site collection) along with users organized by group and project along with Role/permission.
I have bits and pieces like below but I can use help with full picture.
URL = root site
using (SPSite scSite = new SPSite(url))
{
using (SPWeb scWeb = scSite.OpenWeb())
{
foreach (SPGroup grpin scWeb.Groups)
{
output += grp.Name + System.Environment.NewLine;
}
}
}
Thanks