I need to retrieve a list of all the SharePoint sites to which I have access to via a windows application (C#). I am planning to use SharePoint web services.
Any pointers using SharePoint web services which could provide me the required information?
If you want to use the API instead then I would suggest you do the following to return all the sub webs for the current user without having to use elevated priviliges.
using(SPSite site = new SPSite("http://example/site/"))
{
using (SPWeb web = site.OpenWeb())
{
SPWebCollection webCollection = web.GetSubwebsForCurrentUser();
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With