Forum Discussion

Eddoria's avatar
Eddoria
Brass Contributor
Sep 26, 2022
Solved

Set versioning limits at tenant limit

Is it possible to set tenant level for file versioning. So that by default the limit for minor and major versions are set to say 250. Currently the default seems to be 500. If it is, how is this done?

    • EarlZirkle's avatar
      EarlZirkle
      Iron Contributor
      So I tested this in my test tenant. Say it's in private preview. Bummer!

      S C:\> Set-SPOTenant -MajorVersionLimit 10
      Set-SPOTenant : The requested operation is part of a feature that is in private preview and will be available when the feature becomes generally available (GA).
      At line:1 char:1
      + Set-SPOTenant -MajorVersionLimit 10
      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo : NotSpecified: (:) [Set-SPOTenant], ServerException
      + FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerException,Microsoft.Online.SharePoint.PowerShell.SetTenant
    • EarlZirkle's avatar
      EarlZirkle
      Iron Contributor
      Does anyone know if this the majorversionlimit setting is changed, will it affect all existing SharePoint sites? I ask because this is a good way to free up SharePoint storage if it works.
  • Eddoria I don't think there is any direct setting available for this at tenant level as this settings are available at library level.

     

    You might need to use PowerShell or any other automation which will read all libraries in tenant and update versioning settings programmatically.

     

    References:

    1. SharePoint Online: How to Enable Versioning on a Document Library using PowerShell? 
    2. SharePoint Online: Set Versioning Limit using PowerShell   

    Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

Resources