Skip to content

Solution Automation SetSiteCollectionAdminAuto

Barbarur edited this page Jan 6, 2024 · 3 revisions

Empty items the recycle bin

Solution Code: SetSiteCollectionAdminAuto

Requirements

SharePoint Admin Role.

Parameters

Parameter Type
Admin UPN Required
Remove Admin Optional
All Sites Required
Choice
Include OneDrive Optional
Include Sites Optional
Only Teams Sites Optional
Single Site Required
Choice
Site URL Required*

How this Solution works

  1. Collects the required Sites.
  2. Add or remove target user as Site Collection Admin
  3. Records the information for each action in a CSV file.
Clone this wiki locally