Skip to content

Solution Automation RemoveSiteUserAuto

Barbarur edited this page Mar 27, 2024 · 3 revisions

Remove a user from all Site Collections

Solution Code: RemoveSiteUserAuto

Requirements

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

Parameters

How this Solution works

  1. Collects the required Sites.
  2. Add account as Site Collection Admin.
  3. Check is the user is on the User list of the site.
  4. If the user is found on the site, the account will be removed from site users list.
  5. Records the information for each action in a CSV file.
Clone this wiki locally