Client context model data is not showing for anonymous user RRS feed

  • Question

  • I am getting list data using client context model this data is not showing for anonymous user and valid user

    if i am enable remote interface permission in web application level it showing only for valid user

    Tuesday, February 21, 2017 12:45 PM

All replies

  • Hi,

    Where do you want to get list data? Another .NET web application?

    If you want to get list data from another .NET web application in other server, we need pass the Credentials for ClientContext.

    ClientContext context = new ClientContext("http://SP2013");
    context.Credentials = new NetworkCredential("username", "pwd", "domain");

    You can add a SharePoint user can only access list data permission, then use this user to do the authentication in the C# code above.

    Or another way, we can create an ASP.NET web service in SharePoint server and get data from the list using Server Object Model, then use this web service in other web application.

    Best Regards,


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact

    Wednesday, February 22, 2017 7:47 AM