0

We are trying to perform GET http://<site url>/_api/web/webs using SAML Authentication.

User can access subsites through UI. But still getting 403 while accessing above API using ReST.

Kindly let us know how can we resolve this issue.

0

The endpoint you need to use is

/_api/web/getsubwebsfilteredforcurrentuser(nwebtemplatefilter=-1,nconfigurationfilter=0)

It will give you permission trimmed list of subsites

The /_api/web/webs endpoint only works for users with elevated permissions.

Reference - Webs REST API reference

2
  • Thanks for quick response; We able to get subsites; But I guess $top and $skip filters are not working with this query; Do you know how to do this using getsubwebsfilteredforcurrentuser – crk2904 Jun 1 '20 at 13:35
  • Hmm, I think those parameters won't work for this endpoint. – Gautam Sheth Jun 1 '20 at 13:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.