Skip to content

Solution Automation SetSiteCollectionAdminAuto

Barbarur edited this page Aug 14, 2024 · 3 revisions

Ckear the recycle bin

Solution Code: SetSiteCollectionAdminAuto

Requirements

Run the solution with and account with at least SharePoint Admin role.

Parameters

Target user account
Parameter Type Definition
User UPN Required User UPN from which you want to modify the Site Collection Admin access.
Add as Admin Required
Choice
Target user will be added as Site Collection Admin of the selected sites.
Remove as Admin Required
Choice
Target user will be removed as Site Collection Admin of the selected sites.

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