How can we help you today?

ShortPoint Connect Is Not Working for Anonymous Users

Issue

ShortPoint is now showing list data when anonymous users access the site.

ShortPoint Connect feature reads data from SharePoint lists using SharePoint Javascript Client Object Model. 


Solution

You have to enable anonymous access for SharePoint Javascript Client Object Model APIs using the following two steps:


STEP 1

Powershell Commands to enable: 

  

$web = Get-SPWebApplication -Identity http://your_site_address
$web.ClientCallableSettings.AnonymousRestrictedTypes.Remove( [Microsoft.SharePoint.SPList],"GetItems")
$web.Update()
 

   

Powershell Commands to disable:

    

$web = Get-SPWebApplication -Identity http://your_site_address
$web.ClientCallableSettings.AnonymousRestrictedTypes.Add( [Microsoft.SharePoint.SPList],"GetItems")
$web.Update()
 

    

Enabling this feature does the following:

Enables access to GetItems method from JavaScript Object Model for anonymous users. GetItems method returns items of the list.


Reference

https://sharepointinaction.wordpress.com/tag/the-method-getitems...


STEP 2

  1. Go to Central Administration
  2. Go to Manage Web Application
  3. Select the Web Application
  4. Click on Authentication Providers in the ribbon
  5. Click zone "Default".
  6. Uncheck "Require Use Remote Interfaces Permission"
  7. Save


Reference:

https://social.msdn.microsoft.com/Forums/office/en-US/e752b077-48d8-4d66-a5d8-60f34e9b285d/enable-anonymous-access-for-javascript-client-object-model?forum=sharepointdevelopment


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

World's best intranet sites are designed using ShortPoint

Get started today! Learn more
See all 18 topics

Start a trial

Ignite your vision. Install ShortPoint directly on your site, or play in sandbox mode. No credit card required.

Get started today

World’s best intranet sites are designed using ShortPoint

Thousands of companies using ShortPoint everyday to design, brand and build award winning intranet sites.

Get started Learn more