how to disable Request Access Settings in SharePoint online using REST?
Loading
how to disable Request Access Settings in SharePoint online using REST?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jayraj ChhayaPosted Nov 21, 2024, 5:50 AM
Hi Vinay Ayinapurapu,
To disable the Request Access settings in SharePoint Online using REST, you can utilize the following approach. The Request Access feature allows users to request access to sites they do not have permission to view. If you want to disable this feature, you can do so by updating the site’s permissions settings.
In this code, replace
yourtenantandyoursitewith your actual tenant and site names. This will effectively disable the Request Access feature for the specified SharePoint site. Always ensure you have the necessary permissions to make these changes.