You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
23
23
- Added `Get-PnPLibraryFileVersionBatchDeleteJobStatus` and `Get-PnPSiteFileVersionBatchDeleteJobStatus` to check on the status of applying file based version expiration based on age on a library and site level [#3828](https://github.com/pnp/powershell/pull/3828)
24
24
- Added support for `Get-PnPSiteCollectionAppCatalog` and `Get-PnPTenantSite` to be used with vanity domain tenants [#3895](https://github.com/pnp/powershell/pull/3895)
25
25
- Added support for using vanity domain tenants with `Grant-PnPTenantServicePrincipalPermission`, `Revoke-PnPTenantServicePrincipalPermission`, `Set-PnPWebTheme`, `Invoke-PnPListDesign`, `Set-PnPSite`, `Add-PnPSiteDesignTask`, `Get-PnPSiteDesignRun`, `Get-PnPSiteDesignTask` and `Invoke-PnPSiteDesign` cmdlets [#3898](https://github.com/pnp/powershell/pull/3898)
26
+
- Added `-Detailed` to `Get-PnPMicrosoft365Group` which allows retrieval of the AllowExternalSenders, IsSubscribedByMail and AutoSubscribeNewMembers properties of the group [#3958](https://github.com/pnp/powershell/pull/3958)
27
+
- Added `-RequireSenderAuthenticationEnabled` and `-AutoSubscribeNewMembers` to `Set-PnPMicrosoft365Group` which allows setting these properties on a group [#3958](https://github.com/pnp/powershell/pull/3958)
Retrieves all Microsoft 365 Groups in this tenant with description starting with Contoso. This example demonstrates using Advanced Query capabilities (see: https://learn.microsoft.com/en-us/graph/aad-advanced-queries?tabs=http#group-properties).
87
+
Retrieves all Microsoft 365 Groups in this tenant with description starting with Contoso. This example demonstrates using Advanced Query capabilities (see: https://learn.microsoft.com/graph/aad-advanced-queries?tabs=http#group-properties).
88
88
89
89
## PARAMETERS
90
90
91
+
### -Detailed
92
+
When provided, the following properties originating from Exchange Online, will also be loaded into the returned group. Without providing this flag, they will not be populated. Providing this flag causes an extra call to be made to Microsoft Graph, so only add it when you need one of the properties below.
93
+
94
+
- AutoSubscribeNewMembers
95
+
- RequireSenderAuthenticationEnabled
96
+
- IsSubscribedByMail
97
+
98
+
```yaml
99
+
Type: SwitchParameter
100
+
Parameter Sets: (All)
101
+
102
+
Required: False
103
+
Position: Named
104
+
Default value: None
105
+
Accept pipeline input: False
106
+
Accept wildcard characters: False
107
+
```
108
+
91
109
### -IncludeSiteUrl
92
110
Include fetching the site URL for Microsoft 365 Groups. This slows down large listings.
@@ -76,6 +73,25 @@ Sets the sensitivity label of the group
76
73
77
74
## PARAMETERS
78
75
76
+
### -AutoSubscribeNewMembers
77
+
The AutoSubscribeNewMembers switch specifies whether to automatically subscribe new members that are added to the Microsoft 365 Group to conversations and calendar events. Only users that are added to the group after you enable this setting are automatically subscribed to the group.
78
+
79
+
To subscribe new members to conversations and calendar events, use this exact syntax: -AutoSubscribeNewMembers:$true.
80
+
If you don't want to subscribe new members to conversations and calendar events, use this exact syntax: -AutoSubscribeNewMembers:$false.
81
+
82
+
Note: This property is evaluated only when you add internal members from your organization. Guest user accounts are always subscribed when added as a member.
83
+
84
+
```yaml
85
+
Type: SwitchParameter
86
+
Parameter Sets: (All)
87
+
88
+
Required: False
89
+
Position: Named
90
+
Default value: None
91
+
Accept pipeline input: False
92
+
Accept wildcard characters: False
93
+
```
94
+
79
95
### -CreateTeam
80
96
Creates a Microsoft Teams team associated with created group
81
97
@@ -230,6 +246,21 @@ Accept pipeline input: False
230
246
Accept wildcard characters: False
231
247
```
232
248
249
+
### -RequireSenderAuthenticationEnabled
250
+
Allows configuring if the Microsoft 365 Group should accept e-mail from senders outside of the organisation (false) or if both internal as well as external senders can send e-mail to the e-mail address of the Microsoft 365 group (true).
251
+
252
+
Alias: AllowExternalSenders
253
+
254
+
```yaml
255
+
Type: Boolean
256
+
Parameter Sets: (All)
257
+
Required: False
258
+
Position: Named
259
+
Default value: None
260
+
Accept pipeline input: False
261
+
Accept wildcard characters: False
262
+
```
263
+
233
264
### -SensitivityLabels
234
265
The Sensitivity label to be set to the Microsoft 365 Group. To retrieve the sensitivity label Ids you can use [Get-PnPAvailableSensitivityLabel](Get-PnPAvailableSensitivityLabel.md).
235
266
@@ -243,7 +274,21 @@ Accept pipeline input: False
243
274
Accept wildcard characters: False
244
275
```
245
276
277
+
### -Verbose
278
+
When provided, additional debug statements will be shown while executing the cmdlet.
279
+
280
+
```yaml
281
+
Type: SwitchParameter
282
+
Parameter Sets: (All)
283
+
284
+
Required: False
285
+
Position: Named
286
+
Default value: None
287
+
Accept pipeline input: False
288
+
Accept wildcard characters: False
289
+
```
290
+
246
291
## RELATED LINKS
247
292
248
293
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp)
forceCreation=candidate==null||ShouldContinue($"The Microsoft 365 Group '{MailNickname} already exists. Do you want to create a new one?",Properties.Resources.Confirm);
Copy file name to clipboardExpand all lines: src/Commands/Microsoft365Groups/SetMicrosoft365Group.cs
+30-3Lines changed: 30 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -53,15 +53,23 @@ public class SetMicrosoft365Group : PnPGraphCmdlet
53
53
54
54
[Parameter(Mandatory=false)]
55
55
publicstringMailNickname;
56
-
56
+
57
+
[Parameter(Mandatory=false)]
58
+
[Alias("AllowExternalSenders")]// This is the name used in Microsoft Graph while the name below is the one used within Exchange Online. They both are about the same feature.
varresults=awaitGraphHelper.GetAsync<RestResultCollection<Microsoft365Group>>(connection,$"v1.0/groups?$filter=groupTypes/any(c:c+eq+'Unified') and id eq '{groupId}'",accessToken);
varresults=awaitGraphHelper.GetAsync<RestResultCollection<Microsoft365Group>>(connection,$"v1.0/groups?$filter=groupTypes/any(c:c+eq+'Unified') and (displayName eq '{displayName}' or mailNickName eq '{displayName}')",accessToken);
0 commit comments