none
Assign permissions to list items based on a field selection

    Question

  • Hi, i would like to allow people to create list items which, amongst other fields, have a field to select a user (person/people picker). Lets call that field "Person responsible".

    Once saved, the contents of that list item will ONLY be viewable by the person specified in that field.

    How could this be achieved? 

    The only way i can think is to merely tell the creator of the list item to manually change the item-level permissions, however this is not really viable for people not familiar with sharepoint. 

    Many thanks


    • Edited by roryfm Tuesday, November 15, 2016 5:11 PM
    Tuesday, November 15, 2016 5:10 PM

All replies

  • I used to do this on-premises through the use of an event receiver, but since that is server side code it won't work in Office 365.  The alternative would be to write a SharePoint 2010 workflow that runs on item creation or update and modifies the permission of the item based on the value in the field.  I haven't tried it, but have modified item level permissions using a 2010 workflow action in Office 365 so it should be possible.

    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

    Tuesday, November 15, 2016 6:48 PM
  • Hi,

    You could try to create one workflow and set item level unique permission by REST api, you could check below thread for more details.

    http://spsite.pro/Blog/Post/3/SharePoint-2013-REST-API-%E2%80%93-How-to-set-Unique-Permissions-(Item-Level-Permissions)

    Best Regards,

    Lee


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

    Wednesday, November 16, 2016 6:00 AM
  • Hi,

    Is any update for your issue?

    Best Regards,

    Lee


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

    Tuesday, November 22, 2016 7:34 AM