Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Security Trimming Problem with client side call to client.svc.

$
0
0

I did call to client.svc to get all sub sites for my current site:

            var clientContext = new SP.ClientContext(), web = clientContext.get_web();
            var subWebs = web.get_webs(); clientContext.load(subWebs);
            clientContext.executeQueryAsync(function (sender, args) {

One of the web has permissions which pops up "Access denied" for the user which runs my app. And whole request gives me access denied error. But in reality there are few sub sites but only one have such forbidden permission for this user.

I thought that SharePoint does security trimming so it must just trim out the forbidden site and give me back collection of others. Why service doesn't do this?


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>