How to Make a List Read-Only in a SharePoint Site Collection?

sharepointuser-5603 160 Reputation points
2024-10-11T01:57:42.5766667+00:00

Hi guys,

What is the easiest way to make a list read-only in a site collection?

Kind regards.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,230 questions
0 comments No comments
{count} votes

Accepted answer
  1. Emily Du-MSFT 51,781 Reputation points Microsoft External Staff
    2024-10-11T09:01:42.3833333+00:00

    Per my research, there is no direct way to achieve this through UI. You could make a SharePoint list to read only mode by replacing all permissions on it.

    Please run following PNP PowerShell to grant all users with read permission for this list.

    $SiteURL = "https://tenant.sharepoint.com/sites/test"
    $ListName ="list"
    $LoginName = "c:0(.s|true"
    Connect-PnPOnline -Url $SiteURL -Credentials (Get-Credential)
    Set-PnPList -Identity $ListName -BreakRoleInheritance -CopyRoleAssignments
    $VisitorsGroup = Get-PnPGroup -AssociatedVisitorGroup
    Add-PnPGroupMember -LoginName $LoginName -Identity $VisitorsGroup
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.