SharePoint search: Use the RefinementFilter property to avoid the 4096 characters limit of SharePoint search queries

Even after 5 years of SharePoint and O365 development I sometimes stumble across endpoints I did not know about. Quite often those endpoints are quite helpful.

In this case it was the  RefinementFilter property that can be added to SharePoint Search calls. Using this property you can ignore the query length limit of 4096 characters. This can be super helpful when querying huge collections of items.

Weiterlesen „SharePoint search: Use the RefinementFilter property to avoid the 4096 characters limit of SharePoint search queries“

Set O365 group / MS Team sharing state programmatically

Changing the sharing settings for a O365 group (and a MS Teams because the settings inside teams are controlled by the group settings) is a quite complex thing.

Update:
There’s currently a big problem with this method. You will need Directory.ReadWrite.All permissions for this. This is not an permission that should be given carelessly to anyone, as it grants extensive powers in the graph.

You can not set it in frontend at all. At least we can change it using MS Graph.
Weiterlesen „Set O365 group / MS Team sharing state programmatically“

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“