Last active
June 25, 2020 05:29
-
-
Save Vintaurus/3dfbefea76b4b0c7d3bc3d49e9950d93 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Clear-PermissionsInProvisioningTemplate{ | |
$template = Load-PnPProvisioningTemplate -Path $provisioningTemplateFilePath | |
$template.Security.AdditionalAdministrators.Clear() | |
$template.Security.AdditionalMembers.Clear() | |
$template.Security.AdditionalOwners.Clear() | |
$template.Security.AdditionalVisitors.Clear() | |
Save-PnPProvisioningTemplate -Out $rootsiteTemplateFileName -InputInstance $template -Force | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment