How do I set the number of draft/minor versions each major version can have?

%3CLINGO-SUB%20id%3D%22lingo-sub-887780%22%20slang%3D%22en-US%22%3EHow%20do%20I%20set%20the%20number%20of%20draft%2Fminor%20versions%20each%20major%20version%20can%20have%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-887780%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%3C%2FP%3E%3CP%3EMicrosoft%20claims%20(%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-US%2Fclient%2Fresults%3FShownav%3Dtrue%26amp%3Blcid%3D1033%26amp%3Bns%3DSPOSTANDARD%26amp%3Bversion%3D16%26amp%3Bomkt%3Den-US%26amp%3BhelpID%3Ddocumentversions%26amp%3Bver%3D16%26amp%3Bservices%3DKAIZALA_O365_P3%252CMICROSOFT_SEARCH%252CWHITEBOARD_PLAN2%252CMIP_S_CLP1%252CMYANALYTICS_P2%252CBPOS_S_TODO_2%252CFORMS_PLAN_E3%252CSTREAM_O365_E3%252CDeskless%252CFLOW_O365_P2%252CPOWERAPPS_O365_P2%252CTEAMS1%252CPROJECTWORKMANAGEMENT%252CSWAY%252CINTUNE_O365%252CYAMMER_ENTERPRISE%252CRMS_S_ENTERPRISE%252COFFICESUBSCRIPTION%252CMCOSTANDARD%252CSHAREPOINTWAC%252CSHAREPOINTENTERPRISE%252CEXCHANGE_S_ENTERPRISE%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eon%26nbsp%3Bthis%20page%3C%2FA%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-US%2Fclient%2Fresults%3FShownav%3Dtrue%26amp%3Blcid%3D1033%26amp%3Bns%3DSPOSTANDARD%26amp%3Bversion%3D16%26amp%3Bomkt%3Den-US%26amp%3BhelpID%3Ddocumentversions%26amp%3Bver%3D16%26amp%3Bservices%3DKAIZALA_O365_P3%252CMICROSOFT_SEARCH%252CWHITEBOARD_PLAN2%252CMIP_S_CLP1%252CMYANALYTICS_P2%252CBPOS_S_TODO_2%252CFORMS_PLAN_E3%252CSTREAM_O365_E3%252CDeskless%252CFLOW_O365_P2%252CPOWERAPPS_O365_P2%252CTEAMS1%252CPROJECTWORKMANAGEMENT%252CSWAY%252CINTUNE_O365%252CYAMMER_ENTERPRISE%252CRMS_S_ENTERPRISE%252COFFICESUBSCRIPTION%252CMCOSTANDARD%252CSHAREPOINTWAC%252CSHAREPOINTENTERPRISE%252CEXCHANGE_S_ENTERPRISE%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E)%3C%2FA%3E%3CSPAN%3E%26nbsp%3Bthat%20in%20the%20'Versioning%20setting'%20section%20within%20a%20document%20libraries%20'library%20settings'%26nbsp%3B%20that%20we%20can%20%22%3C%2FSPAN%3E%3CSPAN%3ELimit%20the%20number%20of%20versions%20and%20drafts%20to%20retain%22.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EBut%20from%20what%20I%20can%20see%26nbsp%3B%20that%20is%20not%20correct.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20can%20limit%20the%20number%20of%20major%20versions%3A%3CBR%20%2F%3E%3CSTRONG%3E'Keep%20the%20following%20number%20of%20major%20versions'%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20can%20set%20how%20many%20of%20those%20major%20version%20keep%20draft%2Fminor%20versions%3A%3CBR%20%2F%3E%3CSTRONG%3E'Keep%20drafts%20for%20the%20following%20number%20of%20major%20versions'%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Ebut%20there%20is%20nowhere%20where%20I%20can%20set%20the%20number%20of%20minor%20versions%2C%20or%20minor%20version%20per%20major%20version.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EIs%20this%20setting%20set%20at%20a%20different%26nbsp%3Blevel%2C%20like%20at%20the%20site%20collection%20level%20or%20something%2C%20or%20is%20it%20just%20something%20that%20is%20not%20actually%20available%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ECheers%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EdB%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-887780%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Edraft%20versions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Emajor%20versions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eminor%20versions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eversions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-888237%22%20slang%3D%22en-US%22%3ERe%3A%20How%20do%20I%20set%20the%20number%20of%20draft%2Fminor%20versions%20each%20major%20version%20can%20have%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-888237%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F418434%22%20target%3D%22_blank%22%3E%40DallasBland%3C%2FA%3E%26nbsp%3BI%20don't%20think%20you%20can%20control%20this%2C%20it%20works%20the%20way%20you%20have%20described%2C%20check%20image%20I%20attached%2C%20this%20will%20it%20will%20delete%20minor%20versions%20of%201.0%20when%203.0%20was%20created.%20This%20is%20what%20you%20can%20control%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-890144%22%20slang%3D%22en-US%22%3ERe%3A%20How%20do%20I%20set%20the%20number%20of%20draft%2Fminor%20versions%20each%20major%20version%20can%20have%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-890144%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F410289%22%20target%3D%22_blank%22%3E%40SinhaKislay%3C%2FA%3E.%20I%20suspect%20this%20is%20the%20case.%20But%20what%20confuses%20me%20is%20that%20Microsoft%20say%20the%20number%20of%20minor%20versions%20per%20major%20version%20is%20set%20to%20511%20%3CEM%3Eby%20default%3C%2FEM%3E.%20Am%20I%20wrong%20in%20assuming%20that%20%3CEM%3Eby%20default%3C%2FEM%3E%26nbsp%3Bimplies%20that%20it%20can%20be%20changed%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-911428%22%20slang%3D%22en-US%22%3ERe%3A%20How%20do%20I%20set%20the%20number%20of%20draft%2Fminor%20versions%20each%20major%20version%20can%20have%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-911428%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F410289%22%20target%3D%22_blank%22%3E%40SinhaKislay%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20contacted%20Microsoft%20Prem%20support%20and%20it%20turns%20out%20it%20is%20possible%20to%20control%20this%20minor%20version%20setting.%20Just%20not%20through%20the%20SP%20UI.%20It%20has%20to%20be%20done%20by%20powershell.%20See%20Example%205%20at%20this%20linked%20article.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fsharepoint-pnp%2Fset-pnplist%3Fview%3Dsharepoint-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fsharepoint-pnp%2Fset-pnplist%3Fview%3Dsharepoint-ps%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%3C%2FP%3E%3CP%3EDallas%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi all

Microsoft claims (on this page) that in the 'Versioning setting' section within a document libraries 'library settings'  that we can "Limit the number of versions and drafts to retain".

But from what I can see  that is not correct.

 

I can limit the number of major versions:
'Keep the following number of major versions'

 

I can set how many of those major version keep draft/minor versions:
'Keep drafts for the following number of major versions'

 

but there is nowhere where I can set the number of minor versions, or minor version per major version.

 

Is this setting set at a different level, like at the site collection level or something, or is it just something that is not actually available?

 

Cheers

dB

3 Replies

@DallasBland I don't think you can control this, it works the way you have described, check image I attached, this will it will delete minor versions of 1.0 when 3.0 was created. This is what you can control

Thank you @SinhaKislay. I suspect this is the case. But what confuses me is that Microsoft say the number of minor versions per major version is set to 511 by default. Am I wrong in assuming that by default implies that it can be changed? 

Hi @SinhaKislay 

I contacted Microsoft Prem support and it turns out it is possible to control this minor version setting. Just not through the SP UI. It has to be done by powershell. See Example 5 at this linked article.

https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/set-pnplist?view=sharepoint-ps

 

Cheers

Dallas