Thanks for the reply.
I want to get all the sites and subsites of that site collection.
When I use this:
this.oWebsite = clientContext.get_web();
this.webs = this.oWebsite.get_webs();
If the user has only Read access, then the above will give Access error.
User has Read access to parent site and all subsites inherting it.
Is there a way first check if current site is equal to rootsite, if yes, get the data required from it. If not, first fetch the root site data, then the current site data and then subsites of root site as well subsites of subsite. I mean, a recursive way.
Hope I am not confusing.
Thanks
No comments:
Post a Comment