Limit SharePoint Online Version Control Below Minimum 100 Threshold

Nguyen, Tee 106 Reputation points
2024-05-01T16:55:21.22+00:00

Hi I have a need to limit SharePoint online document library version control below minimum 100, for example 25. Is it possible? If yes, how?

Thanks

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,341 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,793 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Emily Du-MSFT 42,341 Reputation points Microsoft Vendor
    2024-05-02T10:17:27.5333333+00:00

    It is only possible to set the maximum of SharePoint online document library version limit to 25. The minimum of version limit is always 0. In this situation, the version number is from 0 to 25.

    Here are two ways to set version limit.

    1.Go to the document library -> Library settings -> Versioning settings -> Document Version History -> Set limit.

    2.Use PowerShell.

    $SiteURL = "https://tenant.sharepoint.com/sites/emilytestnew"
    $LibraryName = "Documents"
     
    #Connect to SharePoint Online site
    Connect-PnPOnline $SiteURL -Interactive
     
    #Get the Library
    $Library = Get-PnPList -Identity $LibraryName
     
    #Set Version History Limit
    Set-PnPList -Identity $Library -MajorVersions 25
    

    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.


  2. Crighton, David 0 Reputation points
    2024-05-10T18:28:57.82+00:00

    please verify your answer. My understanding from https://learn.microsoft.com/en-us/microsoft-365/community/versioning-basics-best-practices is that SPOL Versioning can only be turned on/off via PowerShell or CSOM and the bottom limit is 100.