Skip to content

Commit 289bdd9

Browse files
authored
Merge branch 'dev' into features/GetSearchCrawlLogApplicationWarning
2 parents b124da4 + 32c4237 commit 289bdd9

Some content is hidden

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

53 files changed

+6223
-5640
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ publish/
133133
# Publish Web Output
134134
*.[Pp]ublish.xml
135135
*.azurePubxml
136-
## TODO: Comment the next line if you want to checkin your
136+
## TODO: Comment the next line if you want to check in your
137137
## web deploy settings but do note that will include unencrypted
138138
## passwords
139139
#*.pubxml

CHANGELOG.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,24 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
2121
- Added `-X509KeyStorageFlags` parameter to `Connect-PnPOnline` cmdlet which allows setting of how private keys are to be imported. [#4324](https://github.com/pnp/powershell/pull/4324)
2222
- Added `-RestrictContentOrgWideSearch` parameter to `Set-PnPSite` which allows for applying the Restricted Content Discoverability (RCD) setting to a site [#4335](https://github.com/pnp/powershell/pull/4335)
2323
- Added `-LaunchBrowser` parameter to `Register-PnPEntraIDAppForInteractiveLogin` and `Register-PnPEntraIDApp` cmdlets to open browser and continue app registration in the browser. [#4347](https://github.com/pnp/powershell/pull/4347) & [#4348](https://github.com/pnp/powershell/pull/4348)
24+
- Added `Get-PnPSearchExternalItem` which allows retrieving the current external items for a specific external connection [#4375](https://github.com/pnp/powershell/pull/4375)
25+
- Added `Remove-PnPSearchExternalItem` which allows for removal of an external item from the Microsoft Search index [#4378](https://github.com/pnp/powershell/pull/4378)
26+
- Added `-Scopes` parameter to `Get-PnPAccessToken` cmdlet to retrieve access token with specific scopes.
2427

2528
### Changed
2629

27-
- PnP PowerShell is now .NET 8.0 based, and requires PowerShell 7.4.
28-
- `-Interactive` login is now the default.
30+
- **PnP PowerShell is now .NET 8.0 based, and requires PowerShell 7.4.**
31+
- **`-Interactive` login is now the default.**
2932
- In case of errors when Graph batch method is used, it will now throw a clearer error message about what was the issue. [#4327](https://github.com/pnp/powershell/pull/4327/)
3033
- `Get-PnPAccessToken`, `Request-PnPAccessToken` and `Get-PnPGraphAccessToken` output type is changed to `Microsoft.IdentityModel.JsonWebTokens.JsonWebToken`. Earlier they returned `System.IdentityModel.Tokens.Jwt`.
3134
- `New-PnPContainerType` will temporarily disable standard containers to be created due to changed being applied at Microsoft to allow this to be possible in the future [#4125](https://github.com/pnp/powershell/pull/4125)
3235
- Renamed `Get-PnPLabel` cmdlet to `Get-PnPRetentionLabel`. [#4387](https://github.com/pnp/powershell/pull/4387)
3336
- `Add-PnPNavigationNode` cmdlet updated to now support `-OpenInNewTab` parameter for different types of navigation. [#3969](https://github.com/pnp/powershell/pull/3969)
34-
- `Remove-PnPFile` , `Rename-PnPFile`, `Set-PnPFileCheckedIn`, `Set-PnPFileCheckedOut` & `Undo-PnPFileCheckedOut` cmdlets now use PnP Core SDK behind the scenes.
35-
- `Set-PnPFileCheckedIn` cmdlet now expects `CheckInType` to be of type `PnP.Core.Model.SharePoint.CheckinType` instead of the earlier one based on CSOM.
37+
- `Remove-PnPFile` , `Rename-PnPFile`, `Set-PnPFileCheckedIn`, `Set-PnPFileCheckedOut` & `Undo-PnPFileCheckedOut` cmdlets now use PnP Core SDK behind the scenes. [#4389](https://github.com/pnp/powershell/pull/4389)
38+
- `Set-PnPFileCheckedIn` cmdlet now expects `CheckInType` to be of type `PnP.Core.Model.SharePoint.CheckinType` instead of the earlier one based on CSOM. [#4389](https://github.com/pnp/powershell/pull/4389)
39+
- `Disable-PnPFeature` and `Enable-PnPFeature` now use PnP Core SDK for processing requests. [#4390](https://github.com/pnp/powershell/pull/4390)
40+
- `Remove-PnPContentType` and `Remove-PnPContentTypeFromList` now use PnP Core SDK for processing requests. [#4390](https://github.com/pnp/powershell/pull/4390)
41+
- `Clear-PnPRecycleBinItem` , `Move-PnPRecycleBinItem` and `Restore-PnPRecycleBinItem` cmdlets now use PnP Core SDK for processing requests. [#4393](https://github.com/pnp/powershell/pull/4393/)
3642

3743
### Fixed
3844

@@ -44,7 +50,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
4450
- Fix `Get-PnPSiteTemplate -PersistMultiLanguageResources` not working correctly for xml file types. [#4326](https://github.com/pnp/powershell/pull/4326)
4551
- Fix `Add-PnPDataRowsToSiteTemplate` setting keyColumn to null when not passed. [#4325](https://github.com/pnp/powershell/pull/4325)
4652
- Fix `Connect-PnPOnline` not working correctly when `-DeviceLogin` and `-LaunchBrowser` both are specified. It used to open it in a popup. Now it correctly launches the browser. [#4325](https://github.com/pnp/powershell/pull/4345)
47-
- `Export-PnPUserInfo`, `Export-PnPUserProfile` and `Remove-PnPUserProfile` cmdlets now work properly with proper `-Connection` parameter if specified.
53+
- `Export-PnPUserInfo`, `Export-PnPUserProfile` and `Remove-PnPUserProfile` cmdlets now work properly with proper `-Connection` parameter if specified. [#4389](https://github.com/pnp/powershell/pull/4389)
4854

4955
### Removed
5056

@@ -53,6 +59,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
5359
- Removed `Set-PnPLabel` and `Reset-PnPLabel` aliases. You need to use `Set-PnPRetentionLabel` and `Reset-PnPRetentionLabel` respectively. [#4387](https://github.com/pnp/powershell/pull/4387)
5460
- Removed `Get-PnPPowerPlatformConnector` alias. You need to use `Get-PnPPowerPlatformCustomConnector`. [#4387](https://github.com/pnp/powershell/pull/4387)
5561
- Removed `-IsFavoriteByDefault` parameter from `Add-PnPTeamsChannel` cmdlet. It was obsolete and not supported by Graph API. [#4387](https://github.com/pnp/powershell/pull/4387)
62+
- Removed `Get-PnPAppAuthAccessToken` , `Remove-PnPGraphAccessToken` and `Request-PnPAccessToken` cmdlets. Use `Get-PnPAccessToken` instead.
5663

5764
### Contributors
5865

MIGRATE-1.0-to-2.0.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The 2.x version of PnP PowerShell is based exclusively on .NET 6.0, which means
66

77
- We had to update the module to .NET 6.0 because Microsoft removed support for .NET 3.1 in early December 2022.
88

9-
- We decided to drop support for .NET Framework it is not actively developed, doesn't work across-platforms and only receives maintainence and security updates. So, it would add additional code complexity and maintainabilty issues for us going forward in the future.
9+
- We decided to drop support for .NET Framework it is not actively developed, doesn't work across-platforms and only receives maintenance and security updates. So, it would add additional code complexity and maintainability issues for us going forward in the future.
1010

1111
- The 2.x version of PnP PowerShell will work only on PowerShell 7.2.x or later versions.
1212

@@ -20,7 +20,7 @@ Or
2020

2121
- For Linux based environments, please use [this link](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-linux?view=powershell-7.2)
2222

23-
- For Mac OS envoronments, please use [this link](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-macos?view=powershell-7.2)
23+
- For Mac OS environments, please use [this link](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-macos?view=powershell-7.2)
2424

2525
Once the PowerShell 7.2.x or later is downloaded and installed in the environment, you can install the PnP PowerShell module like you normally do.
2626

@@ -79,7 +79,7 @@ Using PnP PowerShell in Azure functions ? You might be required to change the Pn
7979

8080
## Other notable changes
8181

82-
- We have removed support for `2019-03` version of the PnP Provisioning schema from all provisioning related cmdlets. You should be using atleast `2019-09` or a later version of the schema.
82+
- We have removed support for `2019-03` version of the PnP Provisioning schema from all provisioning related cmdlets. You should be using at least `2019-09` or a later version of the schema.
8383
- The `-Web` parameter, which was marked obsolete, was used in certain Web level cmdlets. We have removed that. You should use `Connect-PnPOnline -Url [subweburl]` instead to connect to a Web.
8484

8585
## Changes to output type

MIGRATE-2.0-to-3.0.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Or
1616

1717
- For Linux based environments, please use [this link](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-linux)
1818

19-
- For Mac OS envoronments, please use [this link](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-macos)
19+
- For Mac OS environments, please use [this link](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-macos)
2020

2121
Once the PowerShell 7.4 or later is downloaded and installed in the environment, you can install the PnP PowerShell module like you normally do.
2222

@@ -51,6 +51,9 @@ Recommend referring to these 2 links:
5151
| Set-PnPLabel | Use `Set-PnPRetentionLabel` |
5252
| Reset-PnPLabel | Use `Reset-PnPRetentionLabel` |
5353
| Add-PnPTeamsChannel | The parameter `IsFavoriteByDefault` has been removed as it was not supported by Graph API |
54+
| Get-PnPAppAuthAccessToken | It has been removed. Use `Get-PnPAccessToken -ResourceTypeName SharePoint` instead to get SharePoint access token. |
55+
| Request-PnPAccessToken | It has been removed. Use `Get-PnPAccessToken` instead. |
56+
| Get-PnPGraphAccessToken | It has been removed. Use `Get-PnPAccessToken` instead. |
5457

5558
## Other notable changes
5659

@@ -61,5 +64,3 @@ Recommend referring to these 2 links:
6164
| **Cmdlet** | **Comment** |
6265
| ----------- | ---------------------- |
6366
| Get-PnPAccessToken | The output type is now `Microsoft.IdentityModel.JsonWebTokens.JsonWebToken`, earlier it was `System.IdentityModel.Tokens.Jwt` |
64-
| Request-PnPAccessToken | The output type is now `Microsoft.IdentityModel.JsonWebTokens.JsonWebToken`, earlier it was `System.IdentityModel.Tokens.Jwt` |
65-
| Get-PnPGraphAccessToken | The output type is now `Microsoft.IdentityModel.JsonWebTokens.JsonWebToken`, earlier it was `System.IdentityModel.Tokens.Jwt` |

documentation/Get-PnPAccessToken.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ If a Resource Type Name or Resource URL is specified, it will fetch the access t
1616
## SYNTAX
1717

1818
```powershell
19-
Get-PnPAccessToken [-ResourceTypeName] [-ResourceUrl] [-Decoded] [-Connection <PnPConnection>]
19+
Get-PnPAccessToken [-ResourceTypeName] [-ResourceUrl] [-Decoded] [-Scopes] [-Connection <PnPConnection>]
2020
```
2121

2222
## DESCRIPTION
23-
Gets the OAuth 2.0 Access Token to consume the Microsoft Graph API. Doesn't work with all Connect-PnPOnline options. To retrieve the SharePoint Online access token, you can also use `Get-PnPAppAuthAccessToken`.
23+
Gets the OAuth 2.0 Access Token.
2424

2525
## EXAMPLES
2626

@@ -118,6 +118,20 @@ Accept pipeline input: False
118118
Accept wildcard characters: False
119119
```
120120
121+
### -Scopes
122+
The scopes to retrieve the token for. Defaults to AllSites.FullControl
123+
124+
```yaml
125+
Type: String[]
126+
Parameter Sets: (All)
127+
128+
Required: False
129+
Position: Named
130+
Default value: None
131+
Accept pipeline input: False
132+
Accept wildcard characters: False
133+
```
134+
121135
## RELATED LINKS
122136
123137
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp)

documentation/Get-PnPAppAuthAccessToken.md

Lines changed: 0 additions & 51 deletions
This file was deleted.
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
---
2+
Module Name: PnP.PowerShell
3+
schema: 2.0.0
4+
applicable: SharePoint Online
5+
online version: https://pnp.github.io/powershell/cmdlets/Get-PnPDeletedFlow.html
6+
external help file: PnP.PowerShell.dll-Help.xml
7+
title: Get-PnPDeletedFlow
8+
---
9+
10+
# Get-PnPDeletedFlow
11+
12+
## SYNOPSIS
13+
14+
**Required Permissions**
15+
16+
* Azure: management.azure.com
17+
18+
**Information**
19+
20+
* To use this command, you must be a Global or Power Platform administrator.
21+
22+
**Note**
23+
24+
* A Power Automate flow is soft-deleted when:
25+
* It's a non-solution flow.
26+
* It's been deleted less than 21 days ago.
27+
28+
Returns all soft-deleted Power Automate flows within an environment
29+
30+
## SYNTAX
31+
32+
### All (Default)
33+
```powershell
34+
Get-PnPDeletedFlow [-Environment <PowerAutomateEnvironmentPipeBind>] [-Connection <PnPConnection>] [-Verbose]
35+
```
36+
37+
38+
## DESCRIPTION
39+
This cmdlet returns Deleted Power Automate Flows meeting the specified criteria.
40+
41+
## EXAMPLES
42+
43+
### Example 1
44+
```powershell
45+
Get-PnPDeletedFlow
46+
```
47+
Returns all the deleted flows in the default Power Platform environment belonging to any user
48+
49+
### Example 2
50+
```powershell
51+
Get-PnPPowerPlatformEnvironment -Identity "MyOrganization (default)" | Get-PnPDeletedFlow
52+
```
53+
Returns all the deleted flows for a given Power Platform environment belonging to the any user
54+
55+
56+
## PARAMETERS
57+
58+
### -Environment
59+
The name of the Power Platform environment or an Environment object to retrieve the available flows for.
60+
61+
```yaml
62+
Type: PowerAutomateEnvironmentPipeBind
63+
Parameter Sets: (All)
64+
Aliases:
65+
66+
Required: False
67+
Position: Named
68+
Default value: The default environment
69+
Accept pipeline input: False
70+
Accept wildcard characters: False
71+
```
72+
73+
74+
### -Connection
75+
Optional connection to be used by the cmdlet.
76+
Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.
77+
78+
```yaml
79+
Type: PnPConnection
80+
Parameter Sets: (All)
81+
Aliases:
82+
83+
Required: False
84+
Position: Named
85+
Default value: None
86+
Accept pipeline input: False
87+
Accept wildcard characters: False
88+
```
89+
90+
91+
### -Verbose
92+
When provided, additional debug statements will be shown while executing the cmdlet.
93+
94+
```yaml
95+
Type: SwitchParameter
96+
Parameter Sets: (All)
97+
98+
Required: False
99+
Position: Named
100+
Default value: None
101+
Accept pipeline input: False
102+
Accept wildcard characters: False
103+
```
104+
105+
## RELATED LINKS
106+
107+
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp)

documentation/Get-PnPGraphAccessToken.md

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)