adding permissions to list items console app/CSOM RRS feed

  • Question

  • I have a console app (C#) using CSOM to connect to a sharepoint list, the process deletes items if they exist and then uploads new ones via a CSV file and then it adds permissions to items that meet criteria. Now, the app works fine when I run it from the sharepoint server, however, when I move it to a non sharepoint server, it errors out when trying to add permissions to the data items.

    The following error is kicked back:

    [the remote server returned an error: unauthorized]. Now, I can log into the SharePoint site with the same id the process is running under and add permissions to the list in general. What could be causing this error if I'm able to delete, and insert items into the list from my non-sharepoint site?

    Tuesday, July 12, 2016 2:40 PM


  • Hi

    Please do the following


    Please remember to click 'Mark as Answer' on the answer if it helps you

    • Marked as answer by Patrick_Liang Tuesday, July 19, 2016 11:12 AM
    Tuesday, July 12, 2016 7:30 PM