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

Commit 13528c6

Browse files
Merge pull request #2789 from pnp/dev
July 2020 Release
2 parents 48d8da9 + 2e5bb3b commit 13528c6

File tree

596 files changed

+44942
-879
lines changed

Some content is hidden

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

596 files changed

+44942
-879
lines changed
Binary file not shown.
Binary file not shown.

CHANGELOG.md

+31-1
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,42 @@ 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.23.2007.0] (not yet released)
8+
## [3.24.2008.0]
9+
10+
## [3.23.2007.0]
911

1012
### Added
13+
- Added `-WithRightsAssignedDetailed` parameter to `Get-PnPUser` when used against SharePoint Online allowing for fine grained (broken) permissions on item, list and site level to be shown [PR #2754](https://github.com/pnp/PnP-PowerShell/pull/2754)
14+
- Added a `-RowLimit` parameter to `Clear-PnPRecycleBinItem` and `Restore-PnPRecycleBinItem` so that it can be used on recycle bins which hold more than 5000 items [PR #2760](https://github.com/pnp/PnP-PowerShell/pull/2760)
15+
- Added connection option to `Connect-PnPOnline` taking `-Scopes` and `-Credentials` to allow setting up a delegated permission token for use with Microsoft Graph and the Office 365 Management API. See [this wiki page](https://github.com/pnp/PnP-PowerShell/wiki/Connect-options#connect-using-scopes-and-credentials) for more details. [PR #2746](https://github.com/pnp/PnP-PowerShell/pull/2746)
16+
- Added support for enabling and disabling fields using `Set-PnPField -Identity FieldName -Values @{AllowDeletion=$false}` [PR #2766](https://github.com/pnp/PnP-PowerShell/pull/2766)
17+
- Added the following cmdlets to add/remove/clear owners and members of Microsoft 365 Groups: `Add-PnPMicrosoft365GroupMember`, `Add-PnPMicrosoft365GroupOwner`, `Remove-PnPMicrosoft365GroupMember`, `Remove-PnPMicrosoft365GroupOwner`, `Clear-PnPMicrosoft365GroupMember`, `Clear-PnPMicrosoft365GroupOwner` [PR #2750](https://github.com/pnp/PnP-PowerShell/pull/2750)
18+
- Added Add-PnPTeamsChannel, Add-PnPTeamsTab, Add-PnPTeamsUser, Get-PnPTeamsApp, Get-PnPTeamsChannel, Get-PnPTeamsChannelMessage, Get-PnPTeamsTab, Get-PnPTeamsTeam, Get-PnPTeamsUser, New-PnPTeamsApp, New-PnPTeamsTeam, Remove-PnPTeamsChannel, Remove-PnPTeamsTab, Remove-PnPTeamsTeam, Remove-PnPTeamsUser, Set-PnPTeamsChannel, Set-PnPTeamsTab, Set-PnPTeamsTeam, Set-PnPTeamsPicture, Submit-PnPTeamsChannelMessage, Update-PnPTeamsApp cmdlets
19+
- Added Get-PnPFileVersion, Remove-PnPFileVersion, Restore-PnPFileVersion cmdlets
20+
- Added `-HideFromAddressLists` and `-HideFromOutlookClients` to `Set-PnPUnifiedGroup` to allow for setting the visibility of Microsoft 365 Groups [PR #2717](https://github.com/pnp/PnP-PowerShell/pull/2717)
1121

1222
### Changed
23+
- Updated implementation of `Move-PnPFile` to now also support moving of files and folders accross site collections [PR #2749](https://github.com/pnp/PnP-PowerShell/pull/2749)
24+
- Fixed issue where using `Disconnect-PnPOnline -Connection $variable` after having connected using `$variable = Connect-PnPOnline -CertificatePath <path> -ReturnConnection`, it would not clean up the certificate on that connection instance passed in by $variable, but instead try to do it on the current connection context [PR #2755](https://github.com/pnp/PnP-PowerShell/pull/2755)
25+
- Fixed `Invoke-PnPSPRestMethod -Method Merge` not passing in the `If-Match: *` header and thereby causing failed requests [PR #2764](https://github.com/pnp/PnP-PowerShell/pull/2764)
26+
- If a certain PnP PowerShell cmdlet needs access to the SharePoint Admin Center site in order to function correctly, it will now list this in the Synopsis section of the Get-Help for the cmdlet
27+
- Fixed issue where using `Connect-PnPOnline` using `-Thumbnail` would delete the private key on some devices when running `Disconnect-PnPOnline` [PR #2759](https://github.com/pnp/PnP-PowerShell/pull/2759)
28+
- Fixed timeouts on `Get-PnPSiteCollectionAdmin` when the site has a lot of users [PR #2769](https://github.com/pnp/PnP-PowerShell/pull/2769)
29+
- Updated test project structure [PR #2767](https://github.com/pnp/PnP-PowerShell/pull/2767)
30+
- Updated the Microsoft Authentication Library (MSAL) to 4.16.1 which resolves an [issue in the MSAL library](https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/pull/1891) which caused many of the `Connect-PnPOnline` options not to work in Azure Runbooks anymore [PR #2735](https://github.com/pnp/PnP-PowerShell/pull/2735)
31+
- All UnifiedGroup cmdlets have been renamed to Microsoft365Group. I.e. `New-PnPUnifiedGroup` -> `New-PnPMicrosoft365Group`. An alias has been added to provide for backwards compatibility [PR #2771](https://github.com/pnp/PnP-PowerShell/pull/2771)
1332

1433
### Contributors
34+
- Erwin van Hunen [erwinvanhunen]
35+
- Gautam Sheth [gautamdsheth]
36+
- Koen Zomers [koenzomers]
37+
- Maximilian L. [MrTantum]
38+
- Ellie Hussey [Professr]
39+
- Todd Klindt [ToddKlindt]
40+
- Marc D Anderson [sympmarc]
41+
- Jens Otto Hatlevold [jensotto]
42+
- Robin Meure [robinmeure]
43+
- Paul Bullock [pkbullock]
1544

1645
## [3.22.2006.2]
1746

@@ -67,6 +96,7 @@ Intermediate release due to a fix in the underlying Core Library.
6796

6897
### Contributors
6998

99+
70100
## [3.20.2004.0]
71101

72102
### Added

CONTRIBUTING.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Please see following page for additional insights on the model.
1313
---
1414

1515
## Building the source code ##
16-
1716
Once you have downloaded the code, in the folder with the PnP PowerShell source code, open the solution file SharePointPnP.PowerShell.sln.
1817

1918
If you have set up the projects and you are ready to build the source code, make sure to build the SharePointPnP.PowerShellModuleFilesGenerator project first. This project will be executed after every build and it will generate the required PSD1 and XML files with cmdlet documentation in them.
@@ -23,6 +22,9 @@ When you build the solution a postbuild script will copy the required files to a
2322

2423
To debug the cmdlets: launch PowerShell and attach Visual Studio to the powershell.exe process. In case you want to debug methods in PnP Sites Core, make sure that you open the PnP Sites Core project instead, and then attach Visual Studio to the powershell.exe. In case you see strange debug behavior, like it wants to debug PSReadLine.ps1, uninstall the PowerShell extension from Visual Studio.
2524

25+
## Keeping your fork up to date
26+
Before starting on any new submissions, please ensure your fork is up to date with the upstream repository. This avoids frustration and challenges for us to valdate and test your submission. Steps on how to easily keep your fork up to date can be found [on this wiki page](https://github.com/pnp/PnP-PowerShell/wiki/Update-your-fork-with-the-latest-code).
27+
2628
## Code contributions
2729
In order to succesfully compile the PnP PowerShell solution you will _also_ have to download *and build in Visual Studio* the [PnP-Sites-Core](https://github.com/OfficeDev/PnP-Sites-Core) repository and make the dev branch available. The PowerShell solution depends on it. In order to succesfully
2830
compile it, make sure that PnP-Sites-Core is located at the same level as PnP-PowerShell and you open the solution file OfficeDevPnP.Core.sln located in the Core subfolder of the sourcecode.

Commands/Admin/AddOffice365GroupToSite.cs renamed to Commands/Admin/AddMicrosoft365GroupToSite.cs

+6-5
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@
99

1010
namespace SharePointPnP.PowerShell.Commands.Admin
1111
{
12-
[Cmdlet(VerbsCommon.Add, "PnPOffice365GroupToSite")]
12+
[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",
14-
DetailedDescription = "This command allows you to add a Microsoft 365 Unified group to an existing classic site collection.",
14+
DetailedDescription = "This command allows you to add a Microsoft 365 Unified group to an existing classic site collection, also known as groupifying.",
1515
SupportedPlatform = CmdletSupportedPlatform.Online,
1616
Category = CmdletHelpCategory.TenantAdmin)]
1717
[CmdletExample(
1818
Code = @"PS:> Add-PnPOffice365GroupToSite -Url ""https://contoso.sharepoint.com/sites/FinanceTeamsite"" -Alias ""FinanceTeamsite"" -DisplayName = ""My finance team site group""",
19-
Remarks = @"This will add a group called MyGroup to the current site collection", SortOrder = 1)]
20-
public class AddOffice365GroupToSite: PnPAdminCmdlet
19+
Remarks = @"This will groupify the FinanceTeamsite", SortOrder = 1)]
20+
[Alias("Add-PnPOffice365GroupToSite")]
21+
public class AddMicrosoft365GroupToSite: PnPAdminCmdlet
2122
{
2223
[Parameter(Mandatory = true, HelpMessage = @"Url of the site to be connected to an Microsoft 365 Group")]
2324
public string Url;
@@ -43,7 +44,7 @@ public class AddOffice365GroupToSite: PnPAdminCmdlet
4344
[Parameter(Mandatory = false, HelpMessage = "If specified the site will be associated to the hubsite as identified by this id")]
4445
public GuidPipeBind HubSiteId;
4546

46-
[Parameter(Mandatory = false, HelpMessage = "The array UPN values of the group's owners.")]
47+
[Parameter(Mandatory = false, HelpMessage = "The array UPN values of the group's owners")]
4748
public string[] Owners;
4849
protected override void ExecuteCmdlet()
4950
{

Commands/Admin/AddSiteCollectionAppCatalog.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
using SharePointPnP.PowerShell.CmdletHelpAttributes;
55
using SharePointPnP.PowerShell.Commands.Base;
66
using System.Management.Automation;
7-
using OfficeDevPnP.Core.Sites;
87
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
9-
using System;
108

119
namespace SharePointPnP.PowerShell.Commands.Admin
1210
{
@@ -17,7 +15,8 @@ namespace SharePointPnP.PowerShell.Commands.Admin
1715
[CmdletExample(
1816
Code = @"PS:> Add-PnPSiteCollectionAppCatalog -Site ""https://contoso.sharepoint.com/sites/FinanceTeamsite""",
1917
Remarks = @"This will add a SiteCollection app catalog to the specified site", SortOrder = 1)]
20-
public class AddSiteCollectionAppCatalog: PnPAdminCmdlet
18+
[CmdletRelatedLink(Text = "Documentation", Url = "https://docs.microsoft.com/sharepoint/dev/general-development/site-collection-app-catalog#configure-and-manage-site-collection-app-catalogs")]
19+
public class AddSiteCollectionAppCatalog : PnPAdminCmdlet
2120
{
2221
[Parameter(Mandatory = true, HelpMessage = @"Url of the site to add the app catalog to.")]
2322
public SitePipeBind Site;

0 commit comments

Comments
 (0)