Skip to content

Commit 68a54ff

Browse files
authored
Merge branch 'dev' into fix/4370
2 parents 0f3b343 + 57a45cf commit 68a54ff

40 files changed

+4655
-4555
lines changed

.github/workflows/buildpr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ jobs:
4444
run: dotnet build --configuration Debug --no-restore -p:WarningLevel=0
4545
working-directory: pnpcore/src/sdk/PnP.Core
4646
- name: Install PnP.Framework dependencies
47-
run: dotnet restore -p:PnPCoreSdkPath="..\..\..\pnpcore\src\sdk\PnP.Core\bin\Debug\netstandard2.0\PnP.Core.dll" -p:PnPCoreSdkPathNet6="..\..\..\pnpcore\src\sdk\PnP.Core\bin\Debug\net6.0\PnP.Core.dll" -p:PnPCoreSdkPathNet7="..\..\..\pnpcore\src\sdk\PnP.Core\bin\Debug\net7.0\PnP.Core.dll" -p:PnPCoreSdkPathNet8="..\..\..\pnpcore\src\sdk\PnP.Core\bin\Debug\net8.0\PnP.Core.dll"
47+
run: dotnet restore -p:PnPCoreSdkPath="..\..\..\pnpcore\src\sdk\PnP.Core\bin\Debug\netstandard2.0\PnP.Core.dll" -p:PnPCoreSdkPathNet8="..\..\..\pnpcore\src\sdk\PnP.Core\bin\Debug\net8.0\PnP.Core.dll"
4848
working-directory: pnpframework/src/lib
4949
- name: Build PnP.Framework
50-
run: dotnet build --configuration Debug --no-restore -p:WarningLevel=0 -p:PnPCoreSdkPath="..\..\..\..\pnpcore\src\sdk\PnP.Core\bin\Debug\netstandard2.0\PnP.Core.dll" -p:PnPCoreSdkPathNet6="..\..\..\..\pnpcore/src/sdk\PnP.Core\bin\Debug\net6.0\PnP.Core.dll" -p:PnPCoreSdkPathNet7="..\..\..\..\pnpcore\src\sdk\PnP.Core\bin\Debug\net7.0\PnP.Core.dll" -p:PnPCoreSdkPathNet8="..\..\..\..\pnpcore\src\sdk\PnP.Core\bin\Debug\net8.0\PnP.Core.dll"
50+
run: dotnet build --configuration Debug --no-restore -p:WarningLevel=0 -p:PnPCoreSdkPath="..\..\..\..\pnpcore\src\sdk\PnP.Core\bin\Debug\netstandard2.0\PnP.Core.dll" -p:PnPCoreSdkPathNet8="..\..\..\..\pnpcore\src\sdk\PnP.Core\bin\Debug\net8.0\PnP.Core.dll"
5151
working-directory: pnpframework/src/lib/PnP.Framework
5252
- name: Install PnP.PowerShell dependencies
5353
run: dotnet restore -p:PnPFrameworkPath="..\..\..\pnpframework\src\lib\" -p:PnPCoreSdkPath="..\..\..\pnpcore\src\sdk\"

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
2929
- Added `Get-PnPDeletedFlow` cmdlet to retrieve a list of flows which are soft deleted. [#4396](https://github.com/pnp/powershell/pull/4396)
3030
- Added `Restore-PnPFlow` cmdlet which allows for undeleting a flow within 21 days of deletion. [#4415](https://github.com/pnp/powershell/pull/4415)
3131
- Added `-ExcludeDeprecated` to `Export-PnpTaxonomy` which allows for deprecated terms to be excluded from the export [#4053](https://github.com/pnp/powershell/pull/4053)
32+
- Added `-HidePeoplePreviewingFiles` to `Set-PnPSite` which allows for hiding the people previewing files feature on a site [#4416](https://github.com/pnp/powershell/pull/4416)
33+
- Added `-AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled` to `Set-PnPTenant` which allows for updating of web property bag when DenyAddAndCustomizePages is enabled [#4508](https://github.com/pnp/powershell/pull/4508)
34+
- Added `SiteId` to the output of `Get-PnPTenantSite` [#4527](https://github.com/pnp/powershell/pull/4527)
3235

3336
### Changed
3437

@@ -64,6 +67,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
6467
- Fixed `Get-PnPAzureADAppSitePermission`, `Grant-PnPAzureADAppSitePermission` and `Revoke-PnPAzureADAppSitePermission` cmdlets throwing an error when the site URL is not specified and the app registration used only having Graph permissions [#4421](https://github.com/pnp/powershell/pull/4421)
6568
- Fixed `Get-PnPTerm` cmdlet not working correctly when `-ParentTerm` parameter is specified. [#4454](https://github.com/pnp/powershell/pull/4454)
6669
- Fixed the PnP PowerShell version check to only check nightly version in nightly builds and major version in release builds. [#4453](https://github.com/pnp/powershell/pull/4453)
70+
- Fixed `-ConsistencyLevelEventual` flag on `Invoke-PnPGraphMethod` to work correctly. [#4523](https://github.com/pnp/powershell/pull/4523)
71+
- Fixed `Get-PnPServiceHealthIssue` returning an error when certain service states were active [#4530](https://github.com/pnp/powershell/pull/4530)
6772

6873
### Removed
6974

@@ -77,6 +82,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
7782
### Contributors
7883

7984
- Antti K. Koskela [koskila]
85+
- Steve Beaugé [stevebeauge]
86+
- [reusto]
87+
- Fredrik Thorild [fthorild]
8088
- San [sankarkumar23]
8189
- Christian Veenhuis [ChVeen]
8290
- Nishkalank Bezawada [NishkalankBezawada]
@@ -532,7 +540,6 @@ Fixed app registration on Windows
532540
- Kunj Balkrishna Sangani [kunj-sangani]
533541
- Dayana Hristova [makarovv]
534542
- Rodrigo Pinto [ScoutmanPt]
535-
- [reusto]
536543
- Reshmee Auckloo [reshmee011]
537544
- Dan Toft [Tanddant]
538545
- [reusto]

documentation/Add-PnPPage.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Add-PnPPage [-Name] <String> [-LayoutType <PageLayoutType>]
2323
```
2424

2525
## DESCRIPTION
26-
Creates a new page. The page will be located inside the Site Pages library of the site currently connected to.
26+
Creates a new page. The page will be located inside the Site Pages library of the site currently connected to. If the library does not exist yet, tries to ensure it is created.
2727

2828
## EXAMPLES
2929

@@ -32,21 +32,21 @@ Creates a new page. The page will be located inside the Site Pages library of th
3232
Add-PnPPage -Name "NewPage"
3333
```
3434

35-
Creates a new page named 'NewPage'
35+
Creates a new page named 'NewPage'. The resulting file will accordingly be named 'NewPage.aspx'. If a file with that name already exists, executing the commandlet will fail.
3636

3737
### EXAMPLE 2
3838
```powershell
3939
Add-PnPPage -Name "NewPage" -Title "Welcome to my page"
4040
```
4141

42-
Creates a new page NewPage.aspx with the title as provided
42+
Creates a new page NewPage.aspx with the title as provided.
4343

4444
### EXAMPLE 3
4545
```powershell
4646
Add-PnPPage -Name "NewPage" -ContentType "MyPageContentType"
4747
```
4848

49-
Creates a new page named 'NewPage' and sets the content type to the content type specified
49+
Creates a new page named 'NewPage' and sets the content type to the content type specified.
5050

5151
### EXAMPLE 4
5252
```powershell
@@ -67,14 +67,14 @@ Creates a new page named 'NewPage' under 'Folder' folder and saves as a template
6767
Add-PnPPage -Name "NewPage" -HeaderLayoutType ColorBlock
6868
```
6969

70-
Creates a new page named 'NewPage' using the ColorBlock header layout
70+
Creates a new page named 'NewPage' using the ColorBlock header layout.
7171

7272
### EXAMPLE 7
7373
```powershell
7474
Add-PnPPage -Name "NewPage" Article -ScheduledPublishDate (Get-Date).AddHours(1)
7575
```
7676

77-
Creates a new page named 'NewPage' using the article layout and schedule it to be published in 1 hour from now
77+
Creates a new page named 'NewPage' using the article layout and schedule it to be published in 1 hour from now.
7878

7979
### EXAMPLE 8
8080
```powershell
@@ -116,7 +116,7 @@ Accept wildcard characters: False
116116
```
117117
118118
### -CommentsEnabled
119-
Enables or Disables the comments on the page
119+
Enables or Disables the comments on the page.
120120
121121
```yaml
122122
Type: SwitchParameter
@@ -144,7 +144,7 @@ Accept wildcard characters: False
144144
```
145145
146146
### -HeaderLayoutType
147-
Type of layout used for the header
147+
Type of layout used for the header.
148148
149149
```yaml
150150
Type: PageHeaderLayoutType
@@ -188,12 +188,12 @@ Accept wildcard characters: False
188188
```
189189
190190
### -PromoteAs
191-
Allows to promote the page for a specific purpose (HomePage | NewsPage)
191+
Allows to promote the page for a specific purpose (HomePage | NewsPage).
192192
193193
```yaml
194194
Type: PagePromoteType
195195
Parameter Sets: (All)
196-
Accepted values: None, HomePage, NewsArticle, Template
196+
Accepted values: None, HomePage, NewsArticle
197197

198198
Required: False
199199
Position: Named
@@ -231,7 +231,7 @@ Accept wildcard characters: False
231231
```
232232
233233
### -Translate
234-
Creates multilingual pages for all the languages specified in the site collection
234+
Creates multilingual pages for all the languages specified in the site collection.
235235
236236
```yaml
237237
Type: SwitchParameter

documentation/Connect-PnPOnline.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ Connects to the Azure AD with WAM (aka native Windows authentication prompt), ac
282282

283283
WAM is a more secure & faster way of authenticating in Windows OS. It supports Windows Hello, FIDO keys , conditional access policies and more.
284284

285-
### EXAMPLE 9
285+
### EXAMPLE 19
286286
```powershell
287287
$keyStorageflags = [System.Security.Cryptography.X509Certificates.X509KeyStorageFlags]::MachineKeySet -bor [System.Security.Cryptography.X509Certificates.X509KeyStorageFlags]::PersistKeySet
288288
@@ -294,6 +294,15 @@ See [Security App-only EntraId guidance](https://learn.microsoft.com/sharepoint/
294294

295295
See [X509 key storage flags](https://learn.microsoft.com/dotnet/api/system.security.cryptography.x509certificates.x509keystorageflags) for information on how to configure key storage when creating the certificate.
296296

297+
### EXAMPLE 20
298+
```powershell
299+
Connect-PnPOnline -Url "https://contoso.sharepoint.com" -Credentials "https://contoso.sharepoint.com"
300+
```
301+
302+
Connect to SharePoint using Credentials (username and password) from Credential Manager (Windows) or Keychain (Mac) with the specified name to use to authenticate.
303+
304+
On Windows, this entry needs to be under "Generic Credentials".
305+
297306
## PARAMETERS
298307

299308
### -AccessToken

documentation/Get-PnPFlow.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ title: Get-PnPFlow
1414
**Required Permissions**
1515

1616
* Azure: management.azure.com
17+
* Azure Service Management : user_impersonation
18+
* Dynamics CRM : user_impersonation
19+
* PowerApps Service : User
20+
* Link to Required permissions reference : https://pnp.github.io/powershell/articles/determinepermissions.html#help-i-cant-figure-out-which-permissions-i-need
1721

1822
Returns Power Automate Flows
1923

documentation/Get-PnPMicrosoft365GroupSettings.md

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Gets a settings of a specific Microsoft 365 Group or a tenant wide Microsoft 365
2020
## SYNTAX
2121

2222
```powershell
23-
Get-PnPMicrosoft365GroupSettings [-Identity <Microsoft365GroupPipeBind>]
23+
Get-PnPMicrosoft365GroupSettings [-Identity <Microsoft365GroupPipeBind>] [-GroupSetting <Microsoft365GroupSettingsPipeBind>]
2424
```
2525

2626
## DESCRIPTION
@@ -43,6 +43,22 @@ Get-PnPMicrosoft365GroupSettings -Identity $groupId
4343

4444
Retrieves a specific Microsoft 365 Group setting
4545

46+
47+
### EXAMPLE 3
48+
```powershell
49+
Get-PnPMicrosoft365GroupSettings -GroupSetting $groupSettingId
50+
```
51+
52+
Retrieves a tenant-wide specific Microsoft 365 Group setting.
53+
54+
55+
### EXAMPLE 4
56+
```powershell
57+
Get-PnPMicrosoft365GroupSettings -Identity $groupId -GroupSetting $groupSettingId
58+
```
59+
60+
Retrieves a group-specific Microsoft 365 Group setting
61+
4662
## PARAMETERS
4763

4864
### -Identity
@@ -59,10 +75,25 @@ Accept pipeline input: False
5975
Accept wildcard characters: False
6076
```
6177
78+
### -GroupSetting
79+
The Identity of the Microsoft 365 Group Setting
80+
81+
```yaml
82+
Type: Microsoft365GroupSettingsPipeBind
83+
Parameter Sets: (All)
84+
85+
Required: False
86+
Position: Named
87+
Default value: None
88+
Accept pipeline input: False
89+
Accept wildcard characters: False
90+
```
91+
6292
6393
## RELATED LINKS
6494
6595
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp)
66-
[Microsoft Graph documentation](https://learn.microsoft.com/graph/api/groupsetting-get)
96+
[Microsoft Graph documentation get settings](https://learn.microsoft.com/graph/api/groupsetting-get)
97+
[Microsoft Graph documentation list settings](https://learn.microsoft.com/en-gb/graph/api/group-list-setting)
6798
6899

documentation/Get-PnPSiteVersionPolicy.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ title: Get-PnPSiteVersionPolicy
1212
## SYNOPSIS
1313
Get version policy setting of the site.
1414

15+
**Required Permissions**
16+
17+
| Type | API/ Permission Name | Admin consent required |
18+
| --------------- | --------------------------------------- | -------- |
19+
| Delegated | AllSites.FullControl | yes |
20+
1521
## SYNTAX
1622

1723
```powershell

documentation/Get-PnPTenantInfo.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ online version: https://pnp.github.io/powershell/cmdlets/Get-PnPTenantInfo.html
1212
## SYNOPSIS
1313
Gets information about any tenant
1414

15+
** Required Permissions **
16+
Graph: CrossTenantInformation.ReadBasic.All
17+
1518
## SYNTAX
1619

1720
### Current Tenant (default)

documentation/Get-PnPUPABulkImportStatus.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ Get-PnPUPABulkImportStatus [-JobId <Guid>] [-IncludeErrorDetails] [-Connection <
2727
## DESCRIPTION
2828
Retrieve information about the status of submitted user profile bulk upload jobs.
2929

30+
Possible statuses are defined in the [ImportProfilePropertiesJobState enumeration](https://learn.microsoft.com/previous-versions/office/sharepoint-csom/mt643017(v=office.15)):
31+
32+
- Unknown
33+
- Submitted
34+
- Processing
35+
- Queued
36+
- Succeeded
37+
- Error
38+
3039
## EXAMPLES
3140

3241
### EXAMPLE 1
@@ -103,5 +112,4 @@ Accept wildcard characters: False
103112
104113
## RELATED LINKS
105114
106-
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp)
107-
115+
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp)

documentation/Set-PnPSite.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,21 @@ Accept pipeline input: False
310310
Accept wildcard characters: False
311311
```
312312
313+
### -HidePeoplePreviewingFiles
314+
Allows hiding of the presence indicators of users simultaneously editing files.
315+
316+
```yaml
317+
Type: String
318+
Parameter Sets: (All)
319+
Aliases: Url
320+
321+
Required: False
322+
Position: Named
323+
Default value: None
324+
Accept pipeline input: False
325+
Accept wildcard characters: False
326+
```
327+
313328
### -Identity
314329
The url of the site collection.
315330

documentation/Set-PnPSiteVersionPolicy.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ online version: https://pnp.github.io/powershell/cmdlets/Set-PnPSiteVersionPolic
1212
## SYNOPSIS
1313
Sets file version policy related properties on the site.
1414

15+
**Required Permissions**
16+
17+
| Type | API/ Permission Name | Admin consent required |
18+
| --------------- | --------------------------------------- | -------- |
19+
| Delegated | AllSites.FullControl | yes |
20+
21+
1522
## SYNTAX
1623

1724
```powershell

documentation/Set-PnPTenant.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ Set-PnPTenant [-SpecialCharactersStateInFileFolderNames <SpecialCharactersState>
160160
[-GuestSharingGroupAllowListInTenantByPrincipalIdentity <string[]>]
161161
[-OneDriveSharingCapability <SharingCapabilities>]
162162
[-DelayDenyAddAndCustomizePagesEnforcement <Boolean>]
163+
[-AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled <Boolean>]
164+
[-SelfServiceSiteCreationDisabled <Boolean>]
165+
[-SyncAadB2BManagementPolicy]
163166
[-Force] [-Connection <PnPConnection>]
164167
```
165168

@@ -242,6 +245,20 @@ Accept pipeline input: False
242245
Accept wildcard characters: False
243246
```
244247
248+
### -AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled
249+
Enables or disables web property bag update when DenyAddAndCustomizePages is enabled. When AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled is set to $true, web property bag can be updated even if DenyAddAndCustomizePages is turned on when the user had AddAndCustomizePages (prior to DenyAddAndCustomizePages removing it).
250+
251+
```yaml
252+
Type: Boolean
253+
Parameter Sets: (All)
254+
255+
Required: False
256+
Position: Named
257+
Default value: None
258+
Accept pipeline input: False
259+
Accept wildcard characters: False
260+
```
261+
245262
### -ApplyAppEnforcedRestrictionsToAdHocRecipients
246263
When the feature is enabled, all guest users are subject to conditional access policy. By default guest users who are accessing SharePoint Online files with pass code are exempt from the conditional access policy.
247264
@@ -2814,6 +2831,35 @@ Accept pipeline input: False
28142831
Accept wildcard characters: False
28152832
```
28162833

2834+
### -SelfServiceSiteCreationDisabled
2835+
Sets whether self-service site creation is disabled.
2836+
2837+
```yaml
2838+
Type: Boolean
2839+
Parameter Sets: (All)
2840+
2841+
Required: False
2842+
Position: Named
2843+
Default value: None
2844+
Accept pipeline input: False
2845+
Accept wildcard characters: False
2846+
```
2847+
2848+
### -SyncAadB2BManagementPolicy
2849+
This feature allows SharePoint Online to synchronize several Entra B2B collaboration settings [Guest user access restriction and collaboration restriction](https://learn.microsoft.com/en-us/entra/external-id/external-collaboration-settings-configure#configure-settings-in-the-portal), and store them on SharePoint Online tenant store. On sharing, SharePoint checks whether those synchronized settings are blocking sharing before sending invitation requests to Entra B2B invitation manager. The sync might take up to 24 hours to complete if you change those Entra B2B collaboration settings. To make the change effective on SharePoint Online immediately, run 'Set-PnPTenant -SyncAadB2BManagementPolicy' and it forces a sync from Microsoft Entra.
2850+
2851+
2852+
```yaml
2853+
Type: SwitchParameter
2854+
Parameter Sets: (All)
2855+
2856+
Required: False
2857+
Position: Named
2858+
Default value: None
2859+
Accept pipeline input: False
2860+
Accept wildcard characters: False
2861+
```
2862+
28172863
### -Force
28182864
If provided, no confirmation will be requested and the action will be performed
28192865

0 commit comments

Comments
 (0)