Skip to content

Solution Automation SetVersioningLimitAuto

Barbarur edited this page Sep 28, 2023 · 5 revisions

Set versioning limit

Solution Code: SetVersioningLimitAuto

Requirements

Run the solution with and account with access to SharePoint Admin Center.


Parameters

Parameter Type Description
Admin UPN Required Global Admin or SharePoint Admin UPN used to authenticate while running the solution.
It will be added as Site Collection Administrator in order to perform the changes on each Site.
Remove Admin Optional It removes the above user UPN as Site Collection Administrator from each site collection
All Sites Choice The solution will include all Sites as per filters below
Include OneDrive Optional Includes all OneDrive Sites in the Tenant
Include Sites Optional Includes all SharePoint Site Collections in the Tenant
Only Teams Sites Optional It only includes SharePoint Team Site collections connected to a MS365 Group
It cannot be combined if OneDrive are included
Single Site Choice Includes only one Site on the solution
Site URL Optional Site URL of the single site to include on the solution
Include Subsites Optional Includes all subsites and their children
All Libraries and Lists Choice The Solution will include all Libraries and Lists as per filters below
Include hidden lists Optional Includes the Hidden Lists
Include system lists Optional Includes the System Lists
Single library or list Choice The Solution will include a single library only
Library or List title Optional Name of the list to be identified by the solution
Library major versioning limit Required Number of major versioning limit to set for the Document Libraries.
Library major versioning limit Required Number of draft versioning limit to set for the Document Libraries.
Library major versioning limit Required Number of major versioning limit to set for the Item Lists.

How this Solution works

  1. Collects the required Sites.
  2. Collects the required Lists/Libraries.
  3. Set the versioning limits for each library and list.
    1. Records the information for each Item/File in a CSV file.
Clone this wiki locally