none
Add list item using anonymous user in public website of shareopint 2013 office 365 RRS feed

  • Question

  • Can any body know the solution to over come of following error while add list item using anonymous user using CSOM in shareopint 2013 office 365 public website.

    I have tried following solution to narrow down the error from "Access permission"

    http://sharepointtaproom.com/2014/08/28/anonymous-api-access-for-office-365-public-sites/#comment-2304

    Wednesday, September 24, 2014 9:00 AM

Answers

  • I dont see a option for anonmous users to write in Office 365. but Try below:


    http://365tutor.org/enable-anonymous-access-in-office-365-public-sites

    http://blog.bjornhouben.com/2012/09/06/provide-anonymous-access-to-sharepoint-lists-on-office-365-sharepoint-online/

    1. Download the anonymous365 sharepoint solution from http://anonymous365.codeplex.com
    2. Go to the “Site Settings” of your public facing site using by example :
      http://bjornhouben-web.sharepoint.com/_layouts/settings.aspx
    3. Go to the “Galleries” section and go to “Solutions“.
    4. Click under the “Name” colume and in the ribbon interface under the “Solutions” tab choose “Upload Solution“.
    5. Browse to the previously downloaded anonymous365 sharepoint solution : “Wsp365.Anonymous.wsp” and press “OK“.
    6. Check the checkbox of the uploaded “Wsp365.Anonymous.wsp and in the ribbon interface under the “Solutions” tab choose “Activate“.
    7. The go to the “All Site Content” of your public facing site using by example:
      http://bjornhouben-web.sharepoint.com/_layouts/viewlsts.aspx
    8. Press “Create
    9. Choose the list type you want, enter a name and press “Create“.
    10. Then in the ribbon interface under “List Tools” and “List” press the button “Anonymous Access
    11. Choose what access you want to give anonymous users for this specific list and press “OK”.


    If this helped you resolve your issue, please mark it Answered

    • Marked as answer by Lindali Monday, October 6, 2014 8:55 AM
    Thursday, September 25, 2014 11:33 AM
    Moderator
  • Hi,

    According to your post, my understanding is that you want to enable anonymous user add item in public website.

    Per my knowledge, anonymous access is available for public website. However, add items to a list for anonymous users in public website isn't available.

    The API for anonymous access is not available through the CSOM, as a workaround, we can use the sandbox solution to achieve it.

    http://anonymous365.codeplex.com/

    More reference:

    http://community.office365.com/en-us/f/154/t/65502.aspx

    Thanks & Regards,

    Jason


    Jason Guo
    TechNet Community Support

    • Marked as answer by Lindali Monday, October 6, 2014 8:55 AM
    Thursday, September 25, 2014 10:26 AM

All replies

  • Try below:

    http://www.codeproject.com/Articles/785099/Publish-a-Form-for-Anonymous-Users-on-a-Public-Sit

    http://blogs.technet.com/b/sharepointdevelopersupport/archive/2013/06/13/how-to-allow-anonymous-users-to-add-items-to-sharepoint-list-using-client-object-model.aspx

    // Allows AddItem operation using anonymous access

    private static voidAllowAnonAccess(){

                Console.WriteLine("Enabling Anonymous access....");

                SPWebApplication webApp = SPWebApplication.Lookup(new Uri(webAppUrl));

                webApp.ClientCallableSettings.AnonymousRestrictedTypes.Remove(typeof(Microsoft.SharePoint.SPList), "GetItems");

                webApp.ClientCallableSettings.AnonymousRestrictedTypes.Remove(typeof(Microsoft.SharePoint.SPList), "AddItem");

                webApp.Update();

                Console.WriteLine("Enabled Anonymous access!");  

            } 

    // Revokes Add/Get Item operation using anonymous access

            private static voidRemoveAnonAccess(){

                Console.WriteLine("Disabling Anonymous access....");

                SPWebApplication webApp = SPWebApplication.Lookup(new Uri(webAppUrl));

                webApp.ClientCallableSettings.AnonymousRestrictedTypes.Add(typeof(Microsoft.SharePoint.SPList), "GetItems");

                webApp.ClientCallableSettings.AnonymousRestrictedTypes.Add(typeof(Microsoft.SharePoint.SPList), "AddItem");

                webApp.Update();

                Console.WriteLine("Disabled Anonymous access!"); 

            }

    http://www.fiechter.eu/Blog/Post/12/Create-a-survey-for-anonymous-users-on-Office-365


    If this helped you resolve your issue, please mark it Answered

    Wednesday, September 24, 2014 10:28 AM
    Moderator
  • Hi,

    According to your post, my understanding is that you want to enable anonymous user add item in public website.

    Per my knowledge, anonymous access is available for public website. However, add items to a list for anonymous users in public website isn't available.

    The API for anonymous access is not available through the CSOM, as a workaround, we can use the sandbox solution to achieve it.

    http://anonymous365.codeplex.com/

    More reference:

    http://community.office365.com/en-us/f/154/t/65502.aspx

    Thanks & Regards,

    Jason


    Jason Guo
    TechNet Community Support

    • Marked as answer by Lindali Monday, October 6, 2014 8:55 AM
    Thursday, September 25, 2014 10:26 AM
  • Hi

    anonymous write permission isn't allowed on small Business Plans

    http://www.romeodonca.ro/Lists/DB_IT/Office%20365%20-%20Episode%2001%20-%20Sandbox%20Solutions


    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

    Thursday, September 25, 2014 10:32 AM
  • we have E3 plan
    Thursday, September 25, 2014 11:25 AM
  • I dont see a option for anonmous users to write in Office 365. but Try below:


    http://365tutor.org/enable-anonymous-access-in-office-365-public-sites

    http://blog.bjornhouben.com/2012/09/06/provide-anonymous-access-to-sharepoint-lists-on-office-365-sharepoint-online/

    1. Download the anonymous365 sharepoint solution from http://anonymous365.codeplex.com
    2. Go to the “Site Settings” of your public facing site using by example :
      http://bjornhouben-web.sharepoint.com/_layouts/settings.aspx
    3. Go to the “Galleries” section and go to “Solutions“.
    4. Click under the “Name” colume and in the ribbon interface under the “Solutions” tab choose “Upload Solution“.
    5. Browse to the previously downloaded anonymous365 sharepoint solution : “Wsp365.Anonymous.wsp” and press “OK“.
    6. Check the checkbox of the uploaded “Wsp365.Anonymous.wsp and in the ribbon interface under the “Solutions” tab choose “Activate“.
    7. The go to the “All Site Content” of your public facing site using by example:
      http://bjornhouben-web.sharepoint.com/_layouts/viewlsts.aspx
    8. Press “Create
    9. Choose the list type you want, enter a name and press “Create“.
    10. Then in the ribbon interface under “List Tools” and “List” press the button “Anonymous Access
    11. Choose what access you want to give anonymous users for this specific list and press “OK”.


    If this helped you resolve your issue, please mark it Answered

    • Marked as answer by Lindali Monday, October 6, 2014 8:55 AM
    Thursday, September 25, 2014 11:33 AM
    Moderator
  • The codeplex solution does not seem to work anymore. Anyone got this working in 2015?
    Tuesday, April 21, 2015 1:38 PM