CSOM: Set primary set collection admin

When creating modern site collections (e.g. sites with STS#3 Base Template) in SharePoint Online using CSOM the creator of the site will be automatically set as site owner and afterwards becomes site collection administrator afterwards.

To prevent this you have to change to primary site admin, remove old admin user from the site collection admins. This can be done in CSOM using the following logic.
Weiterlesen „CSOM: Set primary set collection admin“

PNP PowerShell: Copy local term group from one Site Collection to another

The following function copies the local termgroups of one site collection to another site collection using the PNP PowerShell provisioning cmdlets.

The template is applied in memory using the Get-PnPProvisioningTemplate -OutputInstance parameter and the Apply-PnPProvisioningTemplate -InputInstance commands.
Weiterlesen „PNP PowerShell: Copy local term group from one Site Collection to another“