SharePoint Online Site versioning limit

IniobongNkanga-8038 631 Reputation points
2024-07-26T09:29:44.74+00:00

Hello 

 

Please i need your help on this issue.

 

Please help with issue we have faced with SPO Site versioning limit. 

We are trying to limit number of major to 5 and minor versions  to 3. 

MajorVersionLimit  : 5

MajorWithMinorVersionsLimit : 3.

 

Mentioned settings applied to SP Site, but if we continue work with Documents, counts of versions keep increasing for example 0.1 till 0.22 and up.

 

For existing and new files in Document library..

 

What was done: 

Enable expiration feature on tenant

Set-SPOTenant -EnableVersionExpirationSetting $true

 

Read site settings:

Get-SPOSite -Identity https://Site/..... | fl Url, EnableAutoExpirationVersionTrim, ExpireVersionsAfterDays, MajorVersionL...

 

Set Versions limit and expiration time

Set-SPOSite -Identity https://Site/..... -EnableAutoExpirationVersionTrim $false -MajorVersionLimit 5 -ExpireVersionsAfter...

 

Track progress of applying changes:

Get-SPOSiteVersionPolicyJobProgress -Identity https://Site/... 

 

In this scenario expected to get 5 Major version and 3 Minor version for document. 

As was tested - settings applied only to new documents or to new library. 

For existing documents - rule don't apply. Also don't apply to Minor version limit 

 

As an example: 

Existing file, should be version limit 3, but it don't work

 

Correct example for 5 Major versions

Hot to apply this setting for all documents - existing and new correctly? And how correctly apply limit for example - versions Last 5 users Major versions and 3 minor versions per user? 

 

P.S. Maybe we have miss some settings. 

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,685 questions
{count} votes

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.