Skip to content

Commit f10cc1e

Browse files
committed
Merge branch 'dev' of https://github.com/pnp/powershell into dev
2 parents efe6640 + 495a2b3 commit f10cc1e

18 files changed

+6004
-5503
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
2424
- Added `-Force` parameter to `Remove-PnPTerm` cmdlet to remove terms without confirmation.
2525
- Added `Import-PnPFlow` cmdlet to import Power Automate in the tenant. [#4854](https://github.com/pnp/powershell/pull/4854)
2626
- Marked `-Force` as obsolete within Enable-PnPFeature cmdlet . [#5146](https://github.com/pnp/powershell/pull/5146)
27+
- Added `Remove-PnPPowerAppPermission` cmdlet to remove Power Apps permissions. [#5168](https://github.com/pnp/powershell/pull/5168)
28+
- Added support for `-ClearGroupId` parameter in `Set-PnPSite` and `Set-PnPTenantSite` cmdlets. [#5192](https://github.com/pnp/powershell/pull/5192)
2729

2830
### Changed
2931
- Improved `Get-PnPTerm` cmdlet to show a better error message. [#4933](https://github.com/pnp/powershell/pull/4933)
@@ -52,6 +54,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
5254
- Fixed issue with `Set-PnPSite -HidePeoplePreviewingFiles $true` and `Set-PnPSite -HidePeopleWhoHaveListsOpen $true` added missing properties [#5003](https://github.com/pnp/powershell/issues/5003)
5355
- Fixed issue with `New-PnpAzureCertificate -OutPfx pnp.pfx -OutCert pnp.cer` made it language agnostic [#5137](https://github.com/pnp/powershell/issues/5137)
5456
- Fix `Register-PnPEntraIdApp` Allow to use CER file instead of PFX [#5129](https://github.com/pnp/powershell/issues/5129)
57+
- Fix `New-PnPTenantSite` cmdlet to properly handle timeout issues for classic sites. [#5185](https://github.com/pnp/powershell/pull/5185)
5558

5659
### Removed
5760
- Removed `-RemoveExisting` parameter from `Add-PnPAzureADGroupMember`, `Add-PnPAzureADGroupOwner`, `Add-PnPMicrosoft365GroupMember` and `Add-PnPMicrosoft365GroupOwner` cmdlets. It was never really implemented and without function. [#5153](https://github.com/pnp/powershell/pull/5153)
@@ -75,6 +78,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
7578
- James Epp [jamesaepp]
7679
- Sven Boll [svenboll]
7780
- Joshua Hendersson [JoshuaSHenderson]
81+
- Siddharth Vaghasia [siddharth-vaghasia]
7882

7983
## [3.1.0]
8084

dependencies.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"Updated": "20251212-030206",
3-
"PnPPowerShell": "e7a8a9ad45fd5546c49bc97272655c8707cb0a82",
4-
"PnPFramework": "adccf50b6da50dd2211e4f5ff005a485041326c3",
5-
"PnPCore": "917f0748d72105a8bccbdfe6e692a467dcf6e497"
2+
"Updated": "20251219-030201",
3+
"PnPPowerShell": "c243006a813689713c177f3b264fccfee71243af",
4+
"PnPFramework": null,
5+
"PnPCore": "9ab77b6a102887b81bee3091f72f0816329a6e2b"
66
}

documentation/Add-PnPMicrosoft365GroupToSite.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ title: Add-PnPMicrosoft365GroupToSite
1313

1414
**Required Permissions**
1515

16-
* SharePoint: Access to the SharePoint Tenant Administration site
16+
* SharePoint: Access to the SharePoint Tenant Administration site + SharePoint site collection admin
17+
* SharePoint permissions: `Sites.FullControl.All` (application) or `AllSites.FullControl` (delegated)
18+
* Ensure the user/account is allowed to create Microsoft 365 Groups (tenant policy), has access to SharePoint admin site and is site collection admin of the site to be groupified.
1719

1820
Groupifies a classic team site by creating a Microsoft 365 group for it and connecting the site with the newly created group.
1921

documentation/Add-PnPOrgAssetsLibrary.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,17 @@ Accept wildcard characters: False
103103
```
104104
105105
### -IsCopilotSearchable
106-
Indicates that the organizational assets library should be searchable in the CoPilot search experience in Office applications to locate corporate images. Only works when the OrgAssetType is set to ImageDocumentLibrary.
106+
Indicates that the organizational assets library should be searchable in the Copilot search experience in Office applications to locate corporate images.
107+
108+
This setting is only supported when `-OrgAssetType` is set to `ImageDocumentLibrary`. When using other `OrgAssetType` values (for example `OfficeTemplateLibrary`), this setting will always be `False` and specifying `-IsCopilotSearchable:$true` will result in an error.
107109

108110
```yaml
109111
Type: Boolean
110112
Parameter Sets: (All)
111113
112114
Required: False
113115
Position: Named
114-
Default value: True
116+
Default value: False
115117
Accept pipeline input: False
116118
Accept wildcard characters: False
117119
```
Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
---
2+
Module Name: PnP.PowerShell
3+
schema: 2.0.0
4+
applicable: SharePoint Online
5+
online version: https://pnp.github.io/powershell/cmdlets/Remove-PnPPowerAppPermission.html
6+
external help file: PnP.PowerShell.dll-Help.xml
7+
title: Remove-PnPPowerAppPermission
8+
---
9+
10+
# Remove-PnPPowerAppPermission
11+
12+
## SYNOPSIS
13+
14+
**Required Permissions**
15+
16+
* Azure: management.azure.com
17+
* PowerApps: service.powerapps.com
18+
* Microsoft Graph: User.Read.All, Group.Read.All
19+
20+
Removes user, group and (Everyone in organization) permissions from a Power App
21+
22+
23+
## SYNTAX
24+
25+
```powershell
26+
Remove-PnPPowerAppPermission [-Environment <PowerAutomateEnvironmentPipeBind>] -Identity <PowerPlatformPipeBind> [-User <String>] [-Group <String>] [-Tenant] [-AsAdmin] [-Force] [-Verbose]
27+
```
28+
29+
## DESCRIPTION
30+
This cmdlet removes user, group, or (Everyone in organization) permissions from a PowerApp using the -User, -Group, or -Tenant parameter. Only one of these parameters can be specified at a time, and at least one must be provided.
31+
32+
## EXAMPLES
33+
34+
### Example 1
35+
```powershell
36+
Remove-PnPPowerAppPermission -Identity 9b2f87e6-4c3d-48c0-a2b6-c1b4e3e57f0f -User [email protected]
37+
```
38+
Removes the specified user permission from the specified PowerApp located in the default environment using user's UPN
39+
40+
### Example 2
41+
```powershell
42+
Remove-PnPPowerAppPermission -Identity 9b2f87e6-4c3d-48c0-a2b6-c1b4e3e57f0f -User 6844c04a-8ee7-40ad-af66-28f6e948cd04
43+
```
44+
Removes the specified user permission from the specified PowerApp located in the default environment using user's Id
45+
46+
### Example 3
47+
```powershell
48+
Remove-PnPPowerAppPermission -Environment (Get-PnPPowerPlatformEnvironment -Identity "myenvironment") -Identity 9b2f87e6-4c3d-48c0-a2b6-c1b4e3e57f0f -User [email protected] -AsAdmin
49+
```
50+
Removes the specified user permission from the specified PowerApp as an admin in the specified environment
51+
52+
### Example 4
53+
```powershell
54+
Remove-PnPPowerAppPermission -Environment (Get-PnPPowerPlatformEnvironment -Identity "myenvironment) -Identity 9b2f87e6-4c3d-48c0-a2b6-c1b4e3e57f0f -User [email protected] -AsAdmin -Force
55+
```
56+
Removes the specified user permission from the specified PowerApp as admin, without asking for confirmation, in the specified environment
57+
58+
### Example 5
59+
```powershell
60+
Remove-PnPPowerAppPermission -Identity "3f4a2c1d-0e9d-4c1e-8b55-9e3c7f0ba7e2" -Group "c6c4b4e0-cd72-4d64-8ec2-cfbd0388ec16" -Force
61+
```
62+
Removes the specified group's permission for the PowerApp without prompting using group id
63+
64+
### Example 6
65+
```powershell
66+
Remove-PnPPowerAppPermission -Identity "3f4a2c1d-0e9d-4c1e-8b55-9e3c7f0ba7e2" -Group "Finance Team"
67+
```
68+
Removes the specified group's permission for the PowerApp using group's display name
69+
70+
### Example 7
71+
```powershell
72+
Remove-PnPPowerAppPermission -Identity "3f4a2c1d-0e9d-4c1e-8b55-9e3c7f0ba7e2" -Tenant
73+
```
74+
Removes the (Everyone in organization) permission for the PowerApp using -Tenant parameter
75+
76+
## PARAMETERS
77+
78+
### -Environment
79+
The name of the Power Platform environment or an Environment instance. If omitted, the default environment will be used.
80+
81+
```yaml
82+
Type: PowerPlatformEnvironmentPipeBind
83+
Parameter Sets: (All)
84+
Aliases:
85+
86+
Required: False
87+
Position: Named
88+
Default value: The default environment
89+
Accept pipeline input: True
90+
Accept wildcard characters: False
91+
```
92+
93+
### -Identity
94+
The Name, Id or instance of the PowerApp to remove the permissions from.
95+
96+
```yaml
97+
Type: PowerPlatformPipeBind
98+
Parameter Sets: (All)
99+
Aliases:
100+
101+
Required: True
102+
Position: Named
103+
Default value: None
104+
Accept pipeline input: False
105+
Accept wildcard characters: False
106+
```
107+
108+
### -User
109+
The user principal name or Id of the user to remove its permissions from the PowerApp.
110+
111+
```yaml
112+
Type: String
113+
Parameter Sets: (All)
114+
115+
Required: False
116+
Position: Named
117+
Default value: None
118+
Accept pipeline input: False
119+
Accept wildcard characters: False
120+
```
121+
122+
### -Group
123+
The group display name or Id of the group to remove its permissions from the PowerApp.
124+
125+
```yaml
126+
Type: String
127+
Parameter Sets: (All)
128+
129+
Required: False
130+
Position: Named
131+
Default value: None
132+
Accept pipeline input: False
133+
Accept wildcard characters: False
134+
```
135+
136+
### -Tenant
137+
The (Everyone in organization) permission to remove from the PowerApp
138+
139+
```yaml
140+
Type: String
141+
Parameter Sets: (All)
142+
143+
Required: False
144+
Position: Named
145+
Default value: None
146+
Accept pipeline input: False
147+
Accept wildcard characters: False
148+
```
149+
150+
### -AsAdmin
151+
If specified, the permission will be removed as an admin. If not specified only the Apps to which the current user already has access can be modified.
152+
153+
```yaml
154+
Type: SwitchParameter
155+
Parameter Sets: (All)
156+
Aliases:
157+
158+
Required: False
159+
Position: Named
160+
Default value: None
161+
Accept pipeline input: False
162+
Accept wildcard characters: False
163+
```
164+
165+
### -Force
166+
Providing the Force parameter will skip the confirmation question.
167+
168+
```yaml
169+
Type: SwitchParameter
170+
Parameter Sets: (All)
171+
172+
Required: False
173+
Position: Named
174+
Default value: None
175+
Accept pipeline input: False
176+
Accept wildcard characters: False
177+
```
178+
179+
## RELATED LINKS
180+
181+
[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
@@ -52,6 +52,7 @@ Set-PnPSite
5252
[-ListsShowHeaderAndNavigation <Boolean>]
5353
[-RestrictContentOrgWideSearch <Boolean>]
5454
[-CanSyncHubSitePermissions <SwitchParameter>]
55+
[-ClearGroupId]
5556
[-HidePeoplePreviewingFiles <Boolean>]
5657
[-HidePeopleWhoHaveListsOpen <Boolean>]
5758
[-RestrictedAccessControl <Boolean>]
@@ -693,6 +694,20 @@ Accept pipeline input: False
693694
Accept wildcard characters: False
694695
```
695696
697+
### -ClearGroupId
698+
This parameter allows you to remove the assigned Microsoft 365 group ID on a site, when the group is permanently deleted.
699+
700+
```yaml
701+
Type: Switch Parameter
702+
Parameter Sets: Set Properties
703+
704+
Required: False
705+
Position: Named
706+
Default value: None
707+
Accept pipeline input: False
708+
Accept wildcard characters: False
709+
```
710+
696711
### -Wait
697712
Wait for the operation to complete
698713

documentation/Set-PnPTenantSite.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Set-PnPTenantSite [-Identity] <String> [-Title <String>] [-LocaleId <UInt32>] [-
4646
[-RestrictedAccessControl <Boolean>] [-ClearRestrictedAccessControl <SwitchParameter>] [-RestrictedAccessControlGroups <Guid[]>]
4747
[-AddRestrictedAccessControlGroups <Guid[]>] [-RemoveRestrictedAccessControlGroups <Guid[]>][-InheritVersionPolicyFromTenant <SwitchParameter>]
4848
[-AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled <Boolean>]
49+
[-ClearGroupId]
4950
[-Wait]
5051
[-Connection <PnPConnection>]
5152
```
@@ -816,6 +817,20 @@ Accept pipeline input: False
816817
Accept wildcard characters: False
817818
```
818819

820+
### -ClearGroupId
821+
This parameter allows you to remove the assigned Microsoft 365 group ID on a site, when the group is permanently deleted.
822+
823+
```yaml
824+
Type: Switch Parameter
825+
Parameter Sets: Set Properties
826+
827+
Required: False
828+
Position: Named
829+
Default value: None
830+
Accept pipeline input: False
831+
Accept wildcard characters: False
832+
```
833+
819834
### -RemoveRestrictedAccessControlGroups
820835
You can remove the specified security group from restricted access control configuration. Members of the security group are no longer be able to access site content while the policy is enforced on the site.
821836

0 commit comments

Comments
 (0)