question

Mikhail-6702 avatar image
Mikhail-6702 asked ·

How do I check if 'Allow access requests' is checked using CSOM in Sharepoint Team site

We have bunch of Sharepoint sites deployed into production. I was given a task to provide a report on whether the 'Allow access requests' (located in the 'Access Requests Console') is checked or not

I do know how to check it or uncheck it programmatically (using the DisableRequestAccess() or EnableRequestAccess() methods of siteContext.Web object)

However, I can't figure out how to find out if the 'Allow access requests' is checked or not

What is the right boolean value of the siteContext.Web object that would tell me if the 'Allow access requests' is checked or not.

Thank you everyone in advance

azure-webapps
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JustinLiu avatar image
JustinLiu answered ·

If the Allow access requests is enable, the web.RequestAccessEmail should not be empty.

Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.