SP.Site.shareByLinkEnabled property (sp.js)

Property that indicates whether users will be able to share links to documents that can be accessed without logging in.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value =SP.Site.get_shareByLinkEnabled()

Return value

true when user will be able to share links to documents that can be accessed without logging in.

REST resource endpoint

Endpoint URI structure

http://<sitecollection>/<site>/_api/site/shareByLinkEnabled

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/site/shareByLinkEnabled

GET syntax

GET http://<sitecollection>/<site>/_api/site/shareByLinkEnabled