Go to list settings and click on advance settings and search for Item-level Permissions, you will get the option to change the permissions for SharePoint list without any customization. Select Create and Edit items by the user option and save the settings.

Why we need this?

There are scenarios where organizations or IT teams need security customizations in list and libraries to allow users to modify or view their content only. Specifically in scenarios like they are submitting a leave request, expense request or submitting a ticket where do not need option to modify content submitted by other users or they can only view content they have submitted. Enabling unique permission for each item is not the required solution as lists are expected to be large in size with time.

So in such scenarios/requirements, the best possible solution I through modifying the list permission through list advance settings.

Change list settings using PowerShell

You can also change the list settings by using PowerShell, I am sharing a small PowerShell cmdlet to change the list item-level permission settings for the list. I am using PnP powershell module:

#connect to sharepoint online site
 Connect-PnPOnline -Url "https://mstalk.sharepoint.com" -Interactive

 #Name of List 
 $listName= "Issue Tracking" 

 #Fetching list
 $list = Get-PnPList $listName -Includes ReadSecurity

 #updating set list item-security to read items created by the user
 $list.ReadSecurity = 2
 #updating set list item-security to edit items created by the user
 $list.WriteSecurity = 2 

Adnan is six time Microsoft MVP (Since 2015) with over 16 years of extensive experience with major expertise on SharePoint, SharePoint based development, Microsoft 365, Microsoft Teams, .Net Platform and Microsoft BI. He is currently working Sr Microsoft Consultant at Olive + Goose. He is MCT Regional Lead for Pakistan Chapter since 2012. He is working on SharePoint for past 12 years and worked on different intranet/intranet solutions for private & govt. sector majorly in United states and Gulf region and have experience of working with multiple Fortune 500 companies. He is a trainer, technology evangelist and also speaks in community forums.

Leave a Reply