What options to collect information from anonymous user in sharepoint site?

Deepak Trivedi 101 Reputation points
2021-02-09T11:43:17.59+00:00

We implemented a public facing site in Sharepoint (hosted at shared server with other provider) and there we have a contact form which should be filled in by anonymous users.
What are different options?
I tried to implement ECMA Scripts but there its always asking for login credentials.
I already configured anonymous Add items settings in the list.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,958 questions
{count} votes

Accepted answer
  1. Jerryzy 10,571 Reputation points
    2021-02-10T04:37:55.73+00:00

    Hi @Deepak Trivedi ,

    In SharePoint 2013 or later, there is a new permission level Remote Interfaces Permission that in particular prevents anonymous users from accessing CSOM libraries.

    To enable CSOM for Anonymous Users, please do like this:

    Go to Central Administration
    Go to Manage Web Application
    Select your Web App
    Click on Authentication Providers in the ribbon
    Click zone "Default".
    Uncheck "Require Use Remote Interfaces Permission"

    66145-snipaste-2021-02-10-12-19-15.png

    Then in Site Permissions, set like this:

    66183-snipaste-2021-02-10-12-24-21.png

    Then tested with this Jsom ECMA Script:

    66074-snipaste-2021-02-10-12-37-33.png

    It's working to add items with anomymous access:

    66119-anonymousadditem.png

    Reference:

    ECMAScript not working for anonymous user

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Deepak Trivedi 101 Reputation points
    2021-02-12T08:56:56.61+00:00

    Thanks @Jerryzy-MSFT this works.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.