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 
 $list.Update()

Adnan, a distinguished professional, boasts an impressive track record as a Microsoft MVP, having achieved this prestigious recognition for the eighth consecutive year since 2015. With an extensive career spanning over 18 years, Adnan has honed his expertise in various domains, notably excelling in SharePoint, Microsoft 365, Microsoft Teams, the .Net Platform, and Microsoft BI. Presently, he holds the esteemed position of Senior Microsoft Consultant at Olive + Goose. Notably, Adnan served as the MCT Regional Lead for the Pakistan Chapter from 2012 to 2017, showcasing his leadership and commitment to fostering growth within the tech community. His journey in the realm of SharePoint spans 14 years, during which he has undertaken diverse projects involving both intranet and internet solutions for both private and government sectors. His impact has transcended geographical boundaries, leaving a mark on projects in the United States and the Gulf region, often collaborating with Fortune 500 companies. Beyond his roles, Adnan is a dedicated educator, sharing his insights and knowledge as a trainer. He also passionately advocates for technology, frequently engaging with the community through speaking engagements in various forums. His multifaceted contributions exemplify his dedication to the tech field and his role in driving its evolution.

Leave a Reply