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

Commit 6323c6a

Browse files
Merge pull request #2833 from pnp/dev
August 2020 Release
2 parents e322d64 + 6be6418 commit 6323c6a

File tree

1,157 files changed

+4067
-3746
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,157 files changed

+4067
-3746
lines changed
Binary file not shown.
Binary file not shown.

CHANGELOG.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,17 @@ All notable changes to this project will be documented in this file.
55

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

8-
## [3.24.2008.0] not yet released
8+
## [3.24.2008.0]
9+
10+
### Added
11+
- Updated `Get/Set-PnPSearchSettings` with an option `-SearchBoxPlaceholderText` to set search placeholder text for the SPO nav bar search box
12+
- Added Set-PnPTermGroup cmdlet to update an existing taxonomy term group.
13+
- Added Set-PnPTeamifyPromptHidden to hide the teamify prompt on a group connected Team Site (modern team site)
14+
15+
### Changed
16+
- 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.
17+
18+
### Contributors
919

1020

1121
## [3.23.2007.1]

Commands/Admin/AddHubSiteAssociation.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#if !ONPREMISES
22
using Microsoft.Online.SharePoint.TenantAdministration;
33
using Microsoft.SharePoint.Client;
4-
using SharePointPnP.PowerShell.CmdletHelpAttributes;
5-
using SharePointPnP.PowerShell.Commands.Base;
4+
using PnP.PowerShell.CmdletHelpAttributes;
5+
using PnP.PowerShell.Commands.Base;
66
using System.Management.Automation;
77
using OfficeDevPnP.Core.Sites;
8-
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
8+
using PnP.PowerShell.Commands.Base.PipeBinds;
99
using System;
1010

11-
namespace SharePointPnP.PowerShell.Commands.Admin
11+
namespace PnP.PowerShell.Commands.Admin
1212
{
1313
[Cmdlet(VerbsCommon.Add, "PnPHubSiteAssociation")]
1414
[Alias("Connect-PnPHubSite")]

Commands/Admin/AddMicrosoft365GroupToSite.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#if !ONPREMISES
22
using Microsoft.Online.SharePoint.TenantAdministration;
33
using Microsoft.SharePoint.Client;
4-
using SharePointPnP.PowerShell.CmdletHelpAttributes;
5-
using SharePointPnP.PowerShell.Commands.Base;
4+
using PnP.PowerShell.CmdletHelpAttributes;
5+
using PnP.PowerShell.Commands.Base;
66
using System.Management.Automation;
77
using OfficeDevPnP.Core.Sites;
8-
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
8+
using PnP.PowerShell.Commands.Base.PipeBinds;
99

10-
namespace SharePointPnP.PowerShell.Commands.Admin
10+
namespace PnP.PowerShell.Commands.Admin
1111
{
1212
[Cmdlet(VerbsCommon.Add, "PnPMicrosoft365GroupToSite")]
1313
[CmdletHelp("Groupifies a classic team site by creating a Microsoft 365 group for it and connecting the site with the newly created group",

Commands/Admin/AddOrgAssetsLibrary.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#if !ONPREMISES
22
using Microsoft.SharePoint.Client;
3-
using SharePointPnP.PowerShell.CmdletHelpAttributes;
4-
using SharePointPnP.PowerShell.Commands.Base;
3+
using PnP.PowerShell.CmdletHelpAttributes;
4+
using PnP.PowerShell.Commands.Base;
55
using System.Management.Automation;
66
using Microsoft.Online.SharePoint.TenantAdministration;
77

8-
namespace SharePointPnP.PowerShell.Commands.Admin
8+
namespace PnP.PowerShell.Commands.Admin
99
{
1010
[Cmdlet(VerbsCommon.Add, "PnPOrgAssetsLibrary")]
1111
[CmdletHelp("Adds a given document library as a organizational asset source",

Commands/Admin/AddOrgNewsSite.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#if !ONPREMISES
22
using Microsoft.SharePoint.Client;
3-
using SharePointPnP.PowerShell.CmdletHelpAttributes;
4-
using SharePointPnP.PowerShell.Commands.Base;
3+
using PnP.PowerShell.CmdletHelpAttributes;
4+
using PnP.PowerShell.Commands.Base;
55
using System.Management.Automation;
6-
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
6+
using PnP.PowerShell.Commands.Base.PipeBinds;
77

8-
namespace SharePointPnP.PowerShell.Commands.Admin
8+
namespace PnP.PowerShell.Commands.Admin
99
{
1010
[Cmdlet(VerbsCommon.Add, "PnPOrgNewsSite")]
1111
[CmdletHelp("Adds the site as an organization news source in your tenant",

Commands/Admin/AddSiteCollectionAppCatalog.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#if !ONPREMISES
22
using Microsoft.Online.SharePoint.TenantAdministration;
33
using Microsoft.SharePoint.Client;
4-
using SharePointPnP.PowerShell.CmdletHelpAttributes;
5-
using SharePointPnP.PowerShell.Commands.Base;
4+
using PnP.PowerShell.CmdletHelpAttributes;
5+
using PnP.PowerShell.Commands.Base;
66
using System.Management.Automation;
7-
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
7+
using PnP.PowerShell.Commands.Base.PipeBinds;
88

9-
namespace SharePointPnP.PowerShell.Commands.Admin
9+
namespace PnP.PowerShell.Commands.Admin
1010
{
1111
[Cmdlet(VerbsCommon.Add, "PnPSiteCollectionAppCatalog")]
1212
[CmdletHelp("Adds a Site Collection scoped App Catalog to a site",

Commands/Admin/AddTenantCdnOrigin.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#if !ONPREMISES
22
using Microsoft.Online.SharePoint.TenantAdministration;
33
using Microsoft.SharePoint.Client;
4-
using SharePointPnP.PowerShell.CmdletHelpAttributes;
5-
using SharePointPnP.PowerShell.Commands.Base;
4+
using PnP.PowerShell.CmdletHelpAttributes;
5+
using PnP.PowerShell.Commands.Base;
66
using System.Management.Automation;
77
using OfficeDevPnP.Core.Sites;
8-
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
8+
using PnP.PowerShell.Commands.Base.PipeBinds;
99
using System;
1010

11-
namespace SharePointPnP.PowerShell.Commands.Admin
11+
namespace PnP.PowerShell.Commands.Admin
1212
{
1313
[Cmdlet(VerbsCommon.Add, "PnPTenantCdnOrigin")]
1414
[CmdletHelp("Adds a new origin to the public or private content delivery network (CDN).",

Commands/Admin/AddTenantTheme.cs

+13-10
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
#if !ONPREMISES
22
using Microsoft.Online.SharePoint.TenantAdministration;
33
using Microsoft.SharePoint.Client;
4-
using SharePointPnP.PowerShell.CmdletHelpAttributes;
5-
using SharePointPnP.PowerShell.Commands.Base;
4+
using PnP.PowerShell.CmdletHelpAttributes;
5+
using PnP.PowerShell.Commands.Base;
66
using System.Management.Automation;
77
using OfficeDevPnP.Core.Sites;
8-
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
8+
using PnP.PowerShell.Commands.Base.PipeBinds;
99
using System;
10-
using SharePointPnP.PowerShell.Commands.Model;
11-
using Newtonsoft.Json;
10+
using PnP.PowerShell.Commands.Model;
1211
using System.Linq;
12+
using System.Text.Json;
1313

14-
namespace SharePointPnP.PowerShell.Commands.Admin
14+
namespace PnP.PowerShell.Commands.Admin
1515
{
1616
[Cmdlet(VerbsCommon.Add, "PnPTenantTheme")]
1717
[CmdletHelp("Adds or updates a theme to the tenant.",
@@ -73,14 +73,17 @@ protected override void ExecuteCmdlet()
7373
{
7474
if (Overwrite.ToBool())
7575
{
76-
Tenant.UpdateTenantTheme(Identity.Name, JsonConvert.SerializeObject(theme));
76+
Tenant.UpdateTenantTheme(Identity.Name, JsonSerializer.Serialize(theme));
7777
ClientContext.ExecuteQueryRetry();
78-
} else
78+
}
79+
else
7980
{
8081
WriteError(new ErrorRecord(new Exception($"Theme exists"), "THEMEEXISTS", ErrorCategory.ResourceExists, Identity.Name));
8182
}
82-
} else {
83-
Tenant.AddTenantTheme(Identity.Name, JsonConvert.SerializeObject(theme));
83+
}
84+
else
85+
{
86+
Tenant.AddTenantTheme(Identity.Name, JsonSerializer.Serialize(theme));
8487
ClientContext.ExecuteQueryRetry();
8588
}
8689
}

Commands/Admin/ClearTenantAppCatalogUrl.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#if !ONPREMISES
22
using System.Management.Automation;
33
using Microsoft.SharePoint.Client;
4-
using SharePointPnP.PowerShell.CmdletHelpAttributes;
5-
using SharePointPnP.PowerShell.Commands.Base;
4+
using PnP.PowerShell.CmdletHelpAttributes;
5+
using PnP.PowerShell.Commands.Base;
66

7-
namespace SharePointPnP.PowerShell.Commands
7+
namespace PnP.PowerShell.Commands
88
{
99
[Cmdlet(VerbsCommon.Clear, "PnPTenantAppCatalogUrl", SupportsShouldProcess = true)]
1010
[CmdletHelp(@"Removes the url of the tenant scoped app catalog. It will not delete the site collection itself.",

Commands/Admin/GetHideDefaultThemes.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
#if !ONPREMISES
22
using Microsoft.Online.SharePoint.TenantAdministration;
33
using Microsoft.SharePoint.Client;
4-
using SharePointPnP.PowerShell.CmdletHelpAttributes;
5-
using SharePointPnP.PowerShell.Commands.Base;
4+
using PnP.PowerShell.CmdletHelpAttributes;
5+
using PnP.PowerShell.Commands.Base;
66
using System.Management.Automation;
77
using OfficeDevPnP.Core.Sites;
8-
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
8+
using PnP.PowerShell.Commands.Base.PipeBinds;
99
using System;
10-
using SharePointPnP.PowerShell.Commands.Enums;
10+
using PnP.PowerShell.Commands.Enums;
1111
using System.Collections.Generic;
12-
using SharePointPnP.PowerShell.Commands.Model;
12+
using PnP.PowerShell.Commands.Model;
1313

14-
namespace SharePointPnP.PowerShell.Commands.Admin
14+
namespace PnP.PowerShell.Commands.Admin
1515
{
1616
[Cmdlet(VerbsCommon.Get, "PnPHideDefaultThemes")]
1717
[CmdletHelp(@"Returns if the default / OOTB themes should be visible to users or not.",

Commands/Admin/GetHomeSite.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#if !ONPREMISES
22
using Microsoft.SharePoint.Client;
3-
using SharePointPnP.PowerShell.CmdletHelpAttributes;
4-
using SharePointPnP.PowerShell.Commands.Base;
3+
using PnP.PowerShell.CmdletHelpAttributes;
4+
using PnP.PowerShell.Commands.Base;
55
using System.Management.Automation;
66

7-
namespace SharePointPnP.PowerShell.Commands.Admin
7+
namespace PnP.PowerShell.Commands.Admin
88
{
99
[Cmdlet(VerbsCommon.Get, "PnPHomeSite")]
1010
[CmdletHelp("Returns the home site url for your tenant",

Commands/Admin/GetHubSite.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#if !ONPREMISES
22
using Microsoft.SharePoint.Client;
3-
using SharePointPnP.PowerShell.CmdletHelpAttributes;
4-
using SharePointPnP.PowerShell.Commands.Base;
5-
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
3+
using PnP.PowerShell.CmdletHelpAttributes;
4+
using PnP.PowerShell.Commands.Base;
5+
using PnP.PowerShell.Commands.Base.PipeBinds;
66
using System.Management.Automation;
77

8-
namespace SharePointPnP.PowerShell.Commands.Admin
8+
namespace PnP.PowerShell.Commands.Admin
99
{
1010
[Cmdlet(VerbsCommon.Get, "PnPHubSite")]
1111
[CmdletHelp(@"Retrieve all or a specific hubsite.",

Commands/Admin/GetHubSiteChild.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#if !ONPREMISES
22
using Microsoft.Online.SharePoint.TenantAdministration;
33
using Microsoft.SharePoint.Client;
4-
using SharePointPnP.PowerShell.CmdletHelpAttributes;
5-
using SharePointPnP.PowerShell.Commands.Base;
6-
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
4+
using PnP.PowerShell.CmdletHelpAttributes;
5+
using PnP.PowerShell.Commands.Base;
6+
using PnP.PowerShell.Commands.Base.PipeBinds;
77
using System;
88
using System.Management.Automation;
9-
using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources;
9+
using Resources = PnP.PowerShell.Commands.Properties.Resources;
1010

11-
namespace SharePointPnP.PowerShell.Commands.Admin
11+
namespace PnP.PowerShell.Commands.Admin
1212
{
1313
[Cmdlet(VerbsCommon.Get, "PnPHubSiteChild")]
1414
[CmdletHelp(@"Retrieves all sites linked to a specific hub site",

Commands/Admin/GetKnowledgeHubSite.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#if !ONPREMISES
22
using Microsoft.SharePoint.Client;
3-
using SharePointPnP.PowerShell.CmdletHelpAttributes;
4-
using SharePointPnP.PowerShell.Commands.Base;
3+
using PnP.PowerShell.CmdletHelpAttributes;
4+
using PnP.PowerShell.Commands.Base;
55
using System.Management.Automation;
66

7-
namespace SharePointPnP.PowerShell.Commands.Admin
7+
namespace PnP.PowerShell.Commands.Admin
88
{
99
[Cmdlet(VerbsCommon.Get, "PnPKnowledgeHubSite")]
1010
[CmdletHelp("Gets the Knowledge Hub Site URL for your tenant",

Commands/Admin/GetOrgAssetsLibrary.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#if !ONPREMISES
22
using Microsoft.SharePoint.Client;
3-
using SharePointPnP.PowerShell.CmdletHelpAttributes;
4-
using SharePointPnP.PowerShell.Commands.Base;
3+
using PnP.PowerShell.CmdletHelpAttributes;
4+
using PnP.PowerShell.Commands.Base;
55
using System.Management.Automation;
66

7-
namespace SharePointPnP.PowerShell.Commands.Admin
7+
namespace PnP.PowerShell.Commands.Admin
88
{
99
[Cmdlet(VerbsCommon.Get, "PnPOrgAssetsLibrary")]
1010
[CmdletHelp("Returns the list of all the configured organizational asset libraries",

Commands/Admin/GetOrgNewsSite.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#if !ONPREMISES
22
using Microsoft.SharePoint.Client;
3-
using SharePointPnP.PowerShell.CmdletHelpAttributes;
4-
using SharePointPnP.PowerShell.Commands.Base;
3+
using PnP.PowerShell.CmdletHelpAttributes;
4+
using PnP.PowerShell.Commands.Base;
55
using System.Management.Automation;
66

7-
namespace SharePointPnP.PowerShell.Commands.Admin
7+
namespace PnP.PowerShell.Commands.Admin
88
{
99
[Cmdlet(VerbsCommon.Get, "PnPOrgNewsSite")]
1010
[CmdletHelp("Returns the list of all the configured organizational news sites.",

Commands/Admin/GetStorageEntity.cs

+6-7
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
using System.Management.Automation;
44
using Microsoft.Online.SharePoint.TenantAdministration;
55
using Microsoft.SharePoint.Client;
6-
using SharePointPnP.PowerShell.CmdletHelpAttributes;
7-
using SharePointPnP.PowerShell.Commands.Base;
8-
using SharePointPnP.PowerShell.Commands.Enums;
6+
using PnP.PowerShell.CmdletHelpAttributes;
7+
using PnP.PowerShell.Commands.Base;
8+
using PnP.PowerShell.Commands.Enums;
99
using System.Collections.Generic;
10-
using Newtonsoft.Json;
11-
using Newtonsoft.Json.Linq;
10+
using System.Text.Json;
1211

13-
namespace SharePointPnP.PowerShell.Commands
12+
namespace PnP.PowerShell.Commands
1413
{
1514
[Cmdlet(VerbsCommon.Get, "PnPStorageEntity", SupportsShouldProcess = true)]
1615
[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.",
@@ -62,7 +61,7 @@ protected override void ExecuteCmdlet()
6261

6362
if (!string.IsNullOrEmpty(storageEntitiesIndex))
6463
{
65-
var storageEntitiesDict = JsonConvert.DeserializeObject<Dictionary<string, Dictionary<string, string>>>(storageEntitiesIndex);
64+
var storageEntitiesDict = JsonSerializer.Deserialize<Dictionary<string, Dictionary<string, string>>>(storageEntitiesIndex);
6665

6766
var storageEntities = new List<StorageEntity>();
6867
foreach (var key in storageEntitiesDict.Keys)

Commands/Admin/GetTenant.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#if !ONPREMISES
22
using Microsoft.SharePoint.Client;
3-
using SharePointPnP.PowerShell.CmdletHelpAttributes;
4-
using SharePointPnP.PowerShell.Commands.Base;
3+
using PnP.PowerShell.CmdletHelpAttributes;
4+
using PnP.PowerShell.Commands.Base;
55
using System.Management.Automation;
6-
using SharePointPnP.PowerShell.Commands.Model;
6+
using PnP.PowerShell.Commands.Model;
77

8-
namespace SharePointPnP.PowerShell.Commands.Admin
8+
namespace PnP.PowerShell.Commands.Admin
99
{
1010
[Cmdlet(VerbsCommon.Get, "PnPTenant")]
1111
[CmdletHelp(@"Returns organization-level site collection properties",

Commands/Admin/GetTenantAppCatalogUrl.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#if !ONPREMISES
22
using System.Management.Automation;
33
using Microsoft.SharePoint.Client;
4-
using SharePointPnP.PowerShell.CmdletHelpAttributes;
4+
using PnP.PowerShell.CmdletHelpAttributes;
55

6-
namespace SharePointPnP.PowerShell.Commands
6+
namespace PnP.PowerShell.Commands
77
{
88
[Cmdlet(VerbsCommon.Get, "PnPTenantAppCatalogUrl", SupportsShouldProcess = true)]
99
[CmdletHelp(@"Retrieves the url of the tenant scoped app catalog",

Commands/Admin/GetTenantCdnEnabled.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#if !ONPREMISES
22
using Microsoft.Online.SharePoint.TenantAdministration;
33
using Microsoft.SharePoint.Client;
4-
using SharePointPnP.PowerShell.CmdletHelpAttributes;
5-
using SharePointPnP.PowerShell.Commands.Base;
4+
using PnP.PowerShell.CmdletHelpAttributes;
5+
using PnP.PowerShell.Commands.Base;
66
using System.Management.Automation;
77
using OfficeDevPnP.Core.Sites;
8-
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
8+
using PnP.PowerShell.Commands.Base.PipeBinds;
99
using System;
10-
using SharePointPnP.PowerShell.Commands.Enums;
10+
using PnP.PowerShell.Commands.Enums;
1111
using System.Collections.Generic;
1212

13-
namespace SharePointPnP.PowerShell.Commands.Admin
13+
namespace PnP.PowerShell.Commands.Admin
1414
{
1515
[Cmdlet(VerbsCommon.Get, "PnPTenantCdnEnabled")]
1616
[CmdletHelp("Retrieves if the Office 365 Content Delivery Network has been enabled.",

Commands/Admin/GetTenantCdnOrigin.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#if !ONPREMISES
22
using Microsoft.Online.SharePoint.TenantAdministration;
33
using Microsoft.SharePoint.Client;
4-
using SharePointPnP.PowerShell.CmdletHelpAttributes;
5-
using SharePointPnP.PowerShell.Commands.Base;
4+
using PnP.PowerShell.CmdletHelpAttributes;
5+
using PnP.PowerShell.Commands.Base;
66
using System.Management.Automation;
77
using OfficeDevPnP.Core.Sites;
8-
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
8+
using PnP.PowerShell.Commands.Base.PipeBinds;
99
using System;
1010

11-
namespace SharePointPnP.PowerShell.Commands.Admin
11+
namespace PnP.PowerShell.Commands.Admin
1212
{
1313
[Cmdlet(VerbsCommon.Get, "PnPTenantCdnOrigin")]
1414
[CmdletHelp("Returns the current registered origins from the public or private content delivery network (CDN).",

0 commit comments

Comments
 (0)