How can you query CSOM for whether or not a Site or List allows anonymous access?

%3CLINGO-SUB%20id%3D%22lingo-sub-1974071%22%20slang%3D%22en-US%22%3EHow%20can%20you%20query%20CSOM%20for%20whether%20or%20not%20a%20Site%20or%20List%20allows%20anonymous%20access%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1974071%22%20slang%3D%22en-US%22%3E%3CP%3EI%20need%20some%20way%20to%20query%20SharePoint%20API%20to%20see%20if%20a%20given%20Site%20or%20List%20allows%20anonymous%20access.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3ECan%20this%20be%20done%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESame%20question%20was%20asked%20here%20previously%20but%20was%20never%20answered%3A%20%3CA%20href%3D%22https%3A%2F%2Fsharepoint.stackexchange.com%2Fquestions%2F202454%2Fcsom-check-anonymous-access%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fsharepoint.stackexchange.com%2Fquestions%2F202454%2Fcsom-check-anonymous-access%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1974071%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELists%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

I need some way to query SharePoint API to see if a given Site or List allows anonymous access.

 

 
 

Can this be done?

 

Same question was asked here previously but was never answered: https://sharepoint.stackexchange.com/questions/202454/csom-check-anonymous-access

0 Replies