Skip to content

Commit

Permalink
Merge branch 'dev' into removerss
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamdsheth authored Oct 10, 2024
2 parents 56d9219 + 7268de8 commit 001d840
Show file tree
Hide file tree
Showing 18 changed files with 5,251 additions and 5,552 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- 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)
- 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)
- 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)
- Added `-Scopes` parameter to `Get-PnPAccessToken` cmdlet to retrieve access token with specific scopes.

### Changed

Expand Down Expand Up @@ -56,6 +57,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- 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)
- Removed `Get-PnPPowerPlatformConnector` alias. You need to use `Get-PnPPowerPlatformCustomConnector`. [#4387](https://github.com/pnp/powershell/pull/4387)
- Removed `-IsFavoriteByDefault` parameter from `Add-PnPTeamsChannel` cmdlet. It was obsolete and not supported by Graph API. [#4387](https://github.com/pnp/powershell/pull/4387)
- Removed `Get-PnPAppAuthAccessToken` , `Remove-PnPGraphAccessToken` and `Request-PnPAccessToken` cmdlets. Use `Get-PnPAccessToken` instead.

### Contributors

Expand Down
5 changes: 3 additions & 2 deletions MIGRATE-2.0-to-3.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ Recommend referring to these 2 links:
| Set-PnPLabel | Use `Set-PnPRetentionLabel` |
| Reset-PnPLabel | Use `Reset-PnPRetentionLabel` |
| Add-PnPTeamsChannel | The parameter `IsFavoriteByDefault` has been removed as it was not supported by Graph API |
| Get-PnPAppAuthAccessToken | It has been removed. Use `Get-PnPAccessToken -ResourceTypeName SharePoint` instead to get SharePoint access token. |
| Request-PnPAccessToken | It has been removed. Use `Get-PnPAccessToken` instead. |
| Get-PnPGraphAccessToken | It has been removed. Use `Get-PnPAccessToken` instead. |

## Other notable changes

Expand All @@ -61,5 +64,3 @@ Recommend referring to these 2 links:
| **Cmdlet** | **Comment** |
| ----------- | ---------------------- |
| Get-PnPAccessToken | The output type is now `Microsoft.IdentityModel.JsonWebTokens.JsonWebToken`, earlier it was `System.IdentityModel.Tokens.Jwt` |
| Request-PnPAccessToken | The output type is now `Microsoft.IdentityModel.JsonWebTokens.JsonWebToken`, earlier it was `System.IdentityModel.Tokens.Jwt` |
| Get-PnPGraphAccessToken | The output type is now `Microsoft.IdentityModel.JsonWebTokens.JsonWebToken`, earlier it was `System.IdentityModel.Tokens.Jwt` |
18 changes: 16 additions & 2 deletions documentation/Get-PnPAccessToken.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ If a Resource Type Name or Resource URL is specified, it will fetch the access t
## SYNTAX

```powershell
Get-PnPAccessToken [-ResourceTypeName] [-ResourceUrl] [-Decoded] [-Connection <PnPConnection>]
Get-PnPAccessToken [-ResourceTypeName] [-ResourceUrl] [-Decoded] [-Scopes] [-Connection <PnPConnection>]
```

## DESCRIPTION
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`.
Gets the OAuth 2.0 Access Token.

## EXAMPLES

Expand Down Expand Up @@ -118,6 +118,20 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -Scopes
The scopes to retrieve the token for. Defaults to AllSites.FullControl
```yaml
Type: String[]
Parameter Sets: (All)

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
## RELATED LINKS
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp)
51 changes: 0 additions & 51 deletions documentation/Get-PnPAppAuthAccessToken.md

This file was deleted.

60 changes: 0 additions & 60 deletions documentation/Get-PnPGraphAccessToken.md

This file was deleted.

146 changes: 0 additions & 146 deletions documentation/Request-PnPAccessToken.md

This file was deleted.

39 changes: 38 additions & 1 deletion documentation/Set-PnPList.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Set-PnPList -Identity <ListPipeBind> [-EnableContentTypes <Boolean>] [-BreakRole
[-EnableModeration <Boolean>] [-DraftVersionVisibility <DraftVisibilityType>] [-ReadSecurity <ListReadSecurity>] [-WriteSecurity <ListWriteSecurity>]
[-NoCrawl] [-ExemptFromBlockDownloadOfNonViewableFiles <Boolean>] [-DisableGridEditing <Boolean>] [-DisableCommenting <Boolean>]
[-EnableAutoExpirationVersionTrim <Boolean>] [-ExpireVersionsAfterDays <UInt32>]
[-DefaultSensitivityLabelForLibrary <SensitivityLabelPipeBind>] [-Path <String>] [-OpenDocumentsMode <DocumentLibraryOpenDocumentsInMode>] [-Connection <PnPConnection>]
[-DefaultSensitivityLabelForLibrary <SensitivityLabelPipeBind>] [-Path <String>] [-OpenDocumentsMode <DocumentLibraryOpenDocumentsInMode>] [-Color <ListColor>] [-Icon <ListIcon>] [-Connection <PnPConnection>]
```

## DESCRIPTION
Expand Down Expand Up @@ -108,6 +108,13 @@ Set-PnPList -Identity "Demo List" -DefaultSensitivityLabelForLibrary "Confidenti

Sets the default sensitivity label for a document library to Confidential.

### EXAMPLE 12
```powershell
Set-PnPList -Identity "Demo List" -Color Green -Icon "Plane"
```

Changes the icon of the list to a plane, and the background color of the icon to green.

## PARAMETERS

### -BreakRoleInheritance
Expand Down Expand Up @@ -586,6 +593,36 @@ Enable modern audience targeting in a SharePoint list. Please make sure the foll
Type: Boolean
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Icon
The icon of the list.

```yaml
Type: ListIcon
Parameter Sets: (All)
Accepted values: Bug, Calendar, Target, Clipboard, Plane, Rocket, ColorPalette, Lightbulb, Cube, Beaker, Robot, PiggyBank, Playlist, Hospital, Bank, MapPin, CoffeCup, ShoppingCart, BirthdayCake
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Color
The background color of the list icon.

```yaml
Type: ListColor
Parameter Sets: (All)
Accepted values: DarkRed, Red, Orange, Green, DarkGreen, Teal, Blue, NavyBlue, BluePurple, DarkBlue, Lavender , Pink
Required: False
Position: Named
Default value: None
Expand Down
2 changes: 1 addition & 1 deletion pnpframework_hash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d592d386c9c516bdf50bfba9857f5ee4264fa692
1df48a93b1d330c1eaad7f36ef7502d0b20a5cc0
2 changes: 1 addition & 1 deletion pnppowershell_hash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c755007ec46ce2e8f7da30cc1832c0c734302589
34e0262d64c04100465ad7f06c48e0cb6f25e023
Loading

0 comments on commit 001d840

Please sign in to comment.