Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2833 from pnp/dev
Browse files Browse the repository at this point in the history
August 2020 Release
  • Loading branch information
erwinvanhunen authored Aug 10, 2020
2 parents e322d64 + 6be6418 commit 6323c6a
Show file tree
Hide file tree
Showing 1,157 changed files with 4,067 additions and 3,746 deletions.
Binary file modified Binaries/SharePointPnP.Modernization.Framework.dll
Binary file not shown.
Binary file modified Binaries/release/SharePointPnP.Modernization.Framework.dll
Binary file not shown.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,17 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

## [3.24.2008.0] not yet released
## [3.24.2008.0]

### Added
- Updated `Get/Set-PnPSearchSettings` with an option `-SearchBoxPlaceholderText` to set search placeholder text for the SPO nav bar search box
- Added Set-PnPTermGroup cmdlet to update an existing taxonomy term group.
- Added Set-PnPTeamifyPromptHidden to hide the teamify prompt on a group connected Team Site (modern team site)

### Changed
- Changed the client id of the application used behind the scenes when authenticating to a tenant where Legacy Authentication has been turned off. We now by default utilize the PnP Management Shell application. If you have not provided consent you will be prompted with a message on how to provide consent.

### Contributors


## [3.23.2007.1]
Expand Down
8 changes: 4 additions & 4 deletions Commands/Admin/AddHubSiteAssociation.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#if !ONPREMISES
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using SharePointPnP.PowerShell.CmdletHelpAttributes;
using SharePointPnP.PowerShell.Commands.Base;
using PnP.PowerShell.CmdletHelpAttributes;
using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using OfficeDevPnP.Core.Sites;
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
using PnP.PowerShell.Commands.Base.PipeBinds;
using System;

namespace SharePointPnP.PowerShell.Commands.Admin
namespace PnP.PowerShell.Commands.Admin
{
[Cmdlet(VerbsCommon.Add, "PnPHubSiteAssociation")]
[Alias("Connect-PnPHubSite")]
Expand Down
8 changes: 4 additions & 4 deletions Commands/Admin/AddMicrosoft365GroupToSite.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#if !ONPREMISES
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using SharePointPnP.PowerShell.CmdletHelpAttributes;
using SharePointPnP.PowerShell.Commands.Base;
using PnP.PowerShell.CmdletHelpAttributes;
using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using OfficeDevPnP.Core.Sites;
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
using PnP.PowerShell.Commands.Base.PipeBinds;

namespace SharePointPnP.PowerShell.Commands.Admin
namespace PnP.PowerShell.Commands.Admin
{
[Cmdlet(VerbsCommon.Add, "PnPMicrosoft365GroupToSite")]
[CmdletHelp("Groupifies a classic team site by creating a Microsoft 365 group for it and connecting the site with the newly created group",
Expand Down
6 changes: 3 additions & 3 deletions Commands/Admin/AddOrgAssetsLibrary.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#if !ONPREMISES
using Microsoft.SharePoint.Client;
using SharePointPnP.PowerShell.CmdletHelpAttributes;
using SharePointPnP.PowerShell.Commands.Base;
using PnP.PowerShell.CmdletHelpAttributes;
using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using Microsoft.Online.SharePoint.TenantAdministration;

namespace SharePointPnP.PowerShell.Commands.Admin
namespace PnP.PowerShell.Commands.Admin
{
[Cmdlet(VerbsCommon.Add, "PnPOrgAssetsLibrary")]
[CmdletHelp("Adds a given document library as a organizational asset source",
Expand Down
8 changes: 4 additions & 4 deletions Commands/Admin/AddOrgNewsSite.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#if !ONPREMISES
using Microsoft.SharePoint.Client;
using SharePointPnP.PowerShell.CmdletHelpAttributes;
using SharePointPnP.PowerShell.Commands.Base;
using PnP.PowerShell.CmdletHelpAttributes;
using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
using PnP.PowerShell.Commands.Base.PipeBinds;

namespace SharePointPnP.PowerShell.Commands.Admin
namespace PnP.PowerShell.Commands.Admin
{
[Cmdlet(VerbsCommon.Add, "PnPOrgNewsSite")]
[CmdletHelp("Adds the site as an organization news source in your tenant",
Expand Down
8 changes: 4 additions & 4 deletions Commands/Admin/AddSiteCollectionAppCatalog.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#if !ONPREMISES
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using SharePointPnP.PowerShell.CmdletHelpAttributes;
using SharePointPnP.PowerShell.Commands.Base;
using PnP.PowerShell.CmdletHelpAttributes;
using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
using PnP.PowerShell.Commands.Base.PipeBinds;

namespace SharePointPnP.PowerShell.Commands.Admin
namespace PnP.PowerShell.Commands.Admin
{
[Cmdlet(VerbsCommon.Add, "PnPSiteCollectionAppCatalog")]
[CmdletHelp("Adds a Site Collection scoped App Catalog to a site",
Expand Down
8 changes: 4 additions & 4 deletions Commands/Admin/AddTenantCdnOrigin.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#if !ONPREMISES
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using SharePointPnP.PowerShell.CmdletHelpAttributes;
using SharePointPnP.PowerShell.Commands.Base;
using PnP.PowerShell.CmdletHelpAttributes;
using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using OfficeDevPnP.Core.Sites;
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
using PnP.PowerShell.Commands.Base.PipeBinds;
using System;

namespace SharePointPnP.PowerShell.Commands.Admin
namespace PnP.PowerShell.Commands.Admin
{
[Cmdlet(VerbsCommon.Add, "PnPTenantCdnOrigin")]
[CmdletHelp("Adds a new origin to the public or private content delivery network (CDN).",
Expand Down
23 changes: 13 additions & 10 deletions Commands/Admin/AddTenantTheme.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#if !ONPREMISES
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using SharePointPnP.PowerShell.CmdletHelpAttributes;
using SharePointPnP.PowerShell.Commands.Base;
using PnP.PowerShell.CmdletHelpAttributes;
using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using OfficeDevPnP.Core.Sites;
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
using PnP.PowerShell.Commands.Base.PipeBinds;
using System;
using SharePointPnP.PowerShell.Commands.Model;
using Newtonsoft.Json;
using PnP.PowerShell.Commands.Model;
using System.Linq;
using System.Text.Json;

namespace SharePointPnP.PowerShell.Commands.Admin
namespace PnP.PowerShell.Commands.Admin
{
[Cmdlet(VerbsCommon.Add, "PnPTenantTheme")]
[CmdletHelp("Adds or updates a theme to the tenant.",
Expand Down Expand Up @@ -73,14 +73,17 @@ protected override void ExecuteCmdlet()
{
if (Overwrite.ToBool())
{
Tenant.UpdateTenantTheme(Identity.Name, JsonConvert.SerializeObject(theme));
Tenant.UpdateTenantTheme(Identity.Name, JsonSerializer.Serialize(theme));
ClientContext.ExecuteQueryRetry();
} else
}
else
{
WriteError(new ErrorRecord(new Exception($"Theme exists"), "THEMEEXISTS", ErrorCategory.ResourceExists, Identity.Name));
}
} else {
Tenant.AddTenantTheme(Identity.Name, JsonConvert.SerializeObject(theme));
}
else
{
Tenant.AddTenantTheme(Identity.Name, JsonSerializer.Serialize(theme));
ClientContext.ExecuteQueryRetry();
}
}
Expand Down
6 changes: 3 additions & 3 deletions Commands/Admin/ClearTenantAppCatalogUrl.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#if !ONPREMISES
using System.Management.Automation;
using Microsoft.SharePoint.Client;
using SharePointPnP.PowerShell.CmdletHelpAttributes;
using SharePointPnP.PowerShell.Commands.Base;
using PnP.PowerShell.CmdletHelpAttributes;
using PnP.PowerShell.Commands.Base;

namespace SharePointPnP.PowerShell.Commands
namespace PnP.PowerShell.Commands
{
[Cmdlet(VerbsCommon.Clear, "PnPTenantAppCatalogUrl", SupportsShouldProcess = true)]
[CmdletHelp(@"Removes the url of the tenant scoped app catalog. It will not delete the site collection itself.",
Expand Down
12 changes: 6 additions & 6 deletions Commands/Admin/GetHideDefaultThemes.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#if !ONPREMISES
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using SharePointPnP.PowerShell.CmdletHelpAttributes;
using SharePointPnP.PowerShell.Commands.Base;
using PnP.PowerShell.CmdletHelpAttributes;
using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using OfficeDevPnP.Core.Sites;
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
using PnP.PowerShell.Commands.Base.PipeBinds;
using System;
using SharePointPnP.PowerShell.Commands.Enums;
using PnP.PowerShell.Commands.Enums;
using System.Collections.Generic;
using SharePointPnP.PowerShell.Commands.Model;
using PnP.PowerShell.Commands.Model;

namespace SharePointPnP.PowerShell.Commands.Admin
namespace PnP.PowerShell.Commands.Admin
{
[Cmdlet(VerbsCommon.Get, "PnPHideDefaultThemes")]
[CmdletHelp(@"Returns if the default / OOTB themes should be visible to users or not.",
Expand Down
6 changes: 3 additions & 3 deletions Commands/Admin/GetHomeSite.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#if !ONPREMISES
using Microsoft.SharePoint.Client;
using SharePointPnP.PowerShell.CmdletHelpAttributes;
using SharePointPnP.PowerShell.Commands.Base;
using PnP.PowerShell.CmdletHelpAttributes;
using PnP.PowerShell.Commands.Base;
using System.Management.Automation;

namespace SharePointPnP.PowerShell.Commands.Admin
namespace PnP.PowerShell.Commands.Admin
{
[Cmdlet(VerbsCommon.Get, "PnPHomeSite")]
[CmdletHelp("Returns the home site url for your tenant",
Expand Down
8 changes: 4 additions & 4 deletions Commands/Admin/GetHubSite.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#if !ONPREMISES
using Microsoft.SharePoint.Client;
using SharePointPnP.PowerShell.CmdletHelpAttributes;
using SharePointPnP.PowerShell.Commands.Base;
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
using PnP.PowerShell.CmdletHelpAttributes;
using PnP.PowerShell.Commands.Base;
using PnP.PowerShell.Commands.Base.PipeBinds;
using System.Management.Automation;

namespace SharePointPnP.PowerShell.Commands.Admin
namespace PnP.PowerShell.Commands.Admin
{
[Cmdlet(VerbsCommon.Get, "PnPHubSite")]
[CmdletHelp(@"Retrieve all or a specific hubsite.",
Expand Down
10 changes: 5 additions & 5 deletions Commands/Admin/GetHubSiteChild.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#if !ONPREMISES
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using SharePointPnP.PowerShell.CmdletHelpAttributes;
using SharePointPnP.PowerShell.Commands.Base;
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
using PnP.PowerShell.CmdletHelpAttributes;
using PnP.PowerShell.Commands.Base;
using PnP.PowerShell.Commands.Base.PipeBinds;
using System;
using System.Management.Automation;
using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources;
using Resources = PnP.PowerShell.Commands.Properties.Resources;

namespace SharePointPnP.PowerShell.Commands.Admin
namespace PnP.PowerShell.Commands.Admin
{
[Cmdlet(VerbsCommon.Get, "PnPHubSiteChild")]
[CmdletHelp(@"Retrieves all sites linked to a specific hub site",
Expand Down
6 changes: 3 additions & 3 deletions Commands/Admin/GetKnowledgeHubSite.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#if !ONPREMISES
using Microsoft.SharePoint.Client;
using SharePointPnP.PowerShell.CmdletHelpAttributes;
using SharePointPnP.PowerShell.Commands.Base;
using PnP.PowerShell.CmdletHelpAttributes;
using PnP.PowerShell.Commands.Base;
using System.Management.Automation;

namespace SharePointPnP.PowerShell.Commands.Admin
namespace PnP.PowerShell.Commands.Admin
{
[Cmdlet(VerbsCommon.Get, "PnPKnowledgeHubSite")]
[CmdletHelp("Gets the Knowledge Hub Site URL for your tenant",
Expand Down
6 changes: 3 additions & 3 deletions Commands/Admin/GetOrgAssetsLibrary.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#if !ONPREMISES
using Microsoft.SharePoint.Client;
using SharePointPnP.PowerShell.CmdletHelpAttributes;
using SharePointPnP.PowerShell.Commands.Base;
using PnP.PowerShell.CmdletHelpAttributes;
using PnP.PowerShell.Commands.Base;
using System.Management.Automation;

namespace SharePointPnP.PowerShell.Commands.Admin
namespace PnP.PowerShell.Commands.Admin
{
[Cmdlet(VerbsCommon.Get, "PnPOrgAssetsLibrary")]
[CmdletHelp("Returns the list of all the configured organizational asset libraries",
Expand Down
6 changes: 3 additions & 3 deletions Commands/Admin/GetOrgNewsSite.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#if !ONPREMISES
using Microsoft.SharePoint.Client;
using SharePointPnP.PowerShell.CmdletHelpAttributes;
using SharePointPnP.PowerShell.Commands.Base;
using PnP.PowerShell.CmdletHelpAttributes;
using PnP.PowerShell.Commands.Base;
using System.Management.Automation;

namespace SharePointPnP.PowerShell.Commands.Admin
namespace PnP.PowerShell.Commands.Admin
{
[Cmdlet(VerbsCommon.Get, "PnPOrgNewsSite")]
[CmdletHelp("Returns the list of all the configured organizational news sites.",
Expand Down
13 changes: 6 additions & 7 deletions Commands/Admin/GetStorageEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
using System.Management.Automation;
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using SharePointPnP.PowerShell.CmdletHelpAttributes;
using SharePointPnP.PowerShell.Commands.Base;
using SharePointPnP.PowerShell.Commands.Enums;
using PnP.PowerShell.CmdletHelpAttributes;
using PnP.PowerShell.Commands.Base;
using PnP.PowerShell.Commands.Enums;
using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Text.Json;

namespace SharePointPnP.PowerShell.Commands
namespace PnP.PowerShell.Commands
{
[Cmdlet(VerbsCommon.Get, "PnPStorageEntity", SupportsShouldProcess = true)]
[CmdletHelp(@"Retrieve Storage Entities / Farm Properties from either the Tenant App Catalog or from the current site if it has a site scope app catalog.",
Expand Down Expand Up @@ -62,7 +61,7 @@ protected override void ExecuteCmdlet()

if (!string.IsNullOrEmpty(storageEntitiesIndex))
{
var storageEntitiesDict = JsonConvert.DeserializeObject<Dictionary<string, Dictionary<string, string>>>(storageEntitiesIndex);
var storageEntitiesDict = JsonSerializer.Deserialize<Dictionary<string, Dictionary<string, string>>>(storageEntitiesIndex);

var storageEntities = new List<StorageEntity>();
foreach (var key in storageEntitiesDict.Keys)
Expand Down
8 changes: 4 additions & 4 deletions Commands/Admin/GetTenant.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#if !ONPREMISES
using Microsoft.SharePoint.Client;
using SharePointPnP.PowerShell.CmdletHelpAttributes;
using SharePointPnP.PowerShell.Commands.Base;
using PnP.PowerShell.CmdletHelpAttributes;
using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using SharePointPnP.PowerShell.Commands.Model;
using PnP.PowerShell.Commands.Model;

namespace SharePointPnP.PowerShell.Commands.Admin
namespace PnP.PowerShell.Commands.Admin
{
[Cmdlet(VerbsCommon.Get, "PnPTenant")]
[CmdletHelp(@"Returns organization-level site collection properties",
Expand Down
4 changes: 2 additions & 2 deletions Commands/Admin/GetTenantAppCatalogUrl.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#if !ONPREMISES
using System.Management.Automation;
using Microsoft.SharePoint.Client;
using SharePointPnP.PowerShell.CmdletHelpAttributes;
using PnP.PowerShell.CmdletHelpAttributes;

namespace SharePointPnP.PowerShell.Commands
namespace PnP.PowerShell.Commands
{
[Cmdlet(VerbsCommon.Get, "PnPTenantAppCatalogUrl", SupportsShouldProcess = true)]
[CmdletHelp(@"Retrieves the url of the tenant scoped app catalog",
Expand Down
10 changes: 5 additions & 5 deletions Commands/Admin/GetTenantCdnEnabled.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#if !ONPREMISES
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using SharePointPnP.PowerShell.CmdletHelpAttributes;
using SharePointPnP.PowerShell.Commands.Base;
using PnP.PowerShell.CmdletHelpAttributes;
using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using OfficeDevPnP.Core.Sites;
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
using PnP.PowerShell.Commands.Base.PipeBinds;
using System;
using SharePointPnP.PowerShell.Commands.Enums;
using PnP.PowerShell.Commands.Enums;
using System.Collections.Generic;

namespace SharePointPnP.PowerShell.Commands.Admin
namespace PnP.PowerShell.Commands.Admin
{
[Cmdlet(VerbsCommon.Get, "PnPTenantCdnEnabled")]
[CmdletHelp("Retrieves if the Office 365 Content Delivery Network has been enabled.",
Expand Down
8 changes: 4 additions & 4 deletions Commands/Admin/GetTenantCdnOrigin.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#if !ONPREMISES
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using SharePointPnP.PowerShell.CmdletHelpAttributes;
using SharePointPnP.PowerShell.Commands.Base;
using PnP.PowerShell.CmdletHelpAttributes;
using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using OfficeDevPnP.Core.Sites;
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
using PnP.PowerShell.Commands.Base.PipeBinds;
using System;

namespace SharePointPnP.PowerShell.Commands.Admin
namespace PnP.PowerShell.Commands.Admin
{
[Cmdlet(VerbsCommon.Get, "PnPTenantCdnOrigin")]
[CmdletHelp("Returns the current registered origins from the public or private content delivery network (CDN).",
Expand Down
Loading

0 comments on commit 6323c6a

Please sign in to comment.