none
Get only those sites and site collections from a web application on which user has permission in SharePoint using rest api or jsom RRS feed

  • Question

  • Get only those sites and site collections from a web application on which user has permission in SharePoint using rest api or jsom.

    Nitin

    Tuesday, December 4, 2018 8:12 AM

All replies

  • Hello Nitin,

    Please try this,

    url: "/portal/_api/web/webs/?$select=title,ServerRelativeUrl,Created,effectivebasepermissions&$filter=(effectivebasepermissions/high%20gt%2032)&$orderby=Created desc",
            type: "GET",
            headers: {
                "accept": "application/json;odata=verbose"
        },


    Thanks Ravikant Chaturvedi

    Friday, December 7, 2018 11:43 AM
  • Hi Ravikant,

    Thanks for your help , but i think above mentioned api will fetch sub webs or subsites not site collections.


    Nitin

    Friday, June 28, 2019 1:25 PM