Priority
(Medium) I'm annoyed but I'll live
Description
Upon running aad o365group add with --subscribeNewGroupMembers and without --allowMembersToPost, the resulting group: (i) does not have subscribe new members; and (ii) does not accept email from external addresses.
Steps to reproduce
Running the following code, then checking the group options in the microsoft admin center:
m365 aad o365group add --displayName "Test-37" --description "Test Desc" --mailNickname "KM.Test-37"--subscribeNewGroupMembers --isPrivate
Expected results
The group that is created should have subscribenewgroupmembers enabled and should accept emails from external addresses.
Actual results
The group that is created has subscribenewgroupmembers disabled and does not accept email from external addresses.

Diagnostics
Executing command aad o365group add with options {"options":{"subscribeNewGroupMembers":true,"displayName":"Test-37","description":"Test Desc","mailNickname":"KM.Test-37","isPrivate":true,"debug":true,"output":"json"}}
Creating Microsoft 365 Group...
No users to validate, skipping.
No users to validate, skipping.
Existing access token ... still valid. Returning...
Request:
{
"url": "https://graph.microsoft.com/v1.0/groups",
"method": "post",
"headers": {
"common": {
"Accept": "application/json, text/plain, /"
},
"delete": {},
"get": {},
"head": {},
"post": {
"Content-Type": "application/x-www-form-urlencoded"
},
"put": {
"Content-Type": "application/x-www-form-urlencoded"
},
"patch": {
"Content-Type": "application/x-www-form-urlencoded"
},
"user-agent": "NONISV|SharePointPnP|CLIMicrosoft365/6.8.0",
"accept-encoding": "gzip, deflate",
"X-ClientService-ClientTag": "M365CLI:6.8.0",
"accept": "application/json;odata.metadata=none",
"authorization": "Bearer ..."
},
"responseType": "json",
"decompress": true,
"data": {
"description": "Test Desc",
"displayName": "Test-37",
"groupTypes": [
"Unified"
],
"mailEnabled": true,
"mailNickname": "KM.Test-37",
"resourceBehaviorOptions": [
"subscribeNewGroupMembers"
],
"securityEnabled": false,
"visibility": "Private"
}
}
Response:
{
"url": "https://graph.microsoft.com/v1.0/groups",
"status": 201,
"statusText": "Created",
"headers": {
"cache-control": "no-cache",
"transfer-encoding": "chunked",
"content-type": "application/json;odata.metadata=none;odata.streaming=true;IEEE754Compatible=false;charset=utf-8",
"location": "https://graph.microsoft.com/v2/99ef6887-0280-42f2-abc1-074bc825ec41/directoryObjects/c5e37752-fbf6-4083-9599-940d94b160f9/Microsoft.DirectoryServices.Group",
"vary": "Accept-Encoding",
"strict-transport-security": "max-age=31536000",
"request-id": "4bd0f79f-e1b1-41a7-8ef3-ce42e4d90697",
"client-request-id": "4bd0f79f-e1b1-41a7-8ef3-ce42e4d90697",
"x-ms-ags-diagnostic": "{"ServerInfo":{"DataCenter":"West Europe","Slice":"E","Ring":"5","ScaleUnit":"005","RoleInstance":"AM4PEPF0001513D"}}",
"x-ms-resource-unit": "1",
"odata-version": "4.0",
"date": "Mon, 21 Aug 2023 13:22:07 GMT",
"connection": "close"
},
"data": {
"id": "c5e37752-fbf6-4083-9599-940d94b160f9",
"deletedDateTime": null,
"classification": null,
"createdDateTime": "2023-08-21T13:22:07Z",
"creationOptions": [
"ExchangeProvisioningFlags:2020"
],
"description": "Test Desc",
"displayName": "Test-37",
"expirationDateTime": null,
"groupTypes": [
"Unified"
],
"isAssignableToRole": null,
"mail": "[email protected]",
"mailEnabled": true,
"mailNickname": "KM.Test-37",
"membershipRule": null,
"membershipRuleProcessingState": null,
"onPremisesDomainName": null,
"onPremisesLastSyncDateTime": null,
"onPremisesNetBiosName": null,
"onPremisesSamAccountName": null,
"onPremisesSecurityIdentifier": null,
"onPremisesSyncEnabled": null,
"preferredDataLocation": null,
"preferredLanguage": null,
"proxyAddresses": [
"SMTP:[email protected]"
],
"renewedDateTime": "2023-08-21T13:22:07Z",
"resourceBehaviorOptions": [
"subscribeNewGroupMembers"
],
"resourceProvisioningOptions": [],
"securityEnabled": false,
"securityIdentifier": "S-1-12-1-3320018770-1082391542-227842453-4183863700",
"theme": null,
"visibility": "Private",
"onPremisesProvisioningErrors": [],
"serviceProvisioningErrors": []
}
}
logoPath not set. Skipping
{
"id": "c5e37752-fbf6-4083-9599-940d94b160f9",
"deletedDateTime": null,
"classification": null,
"createdDateTime": "2023-08-21T13:22:07Z",
"creationOptions": [
"ExchangeProvisioningFlags:2020"
],
"description": "Test Desc",
"displayName": "Test-37",
"expirationDateTime": null,
"groupTypes": [
"Unified"
],
"isAssignableToRole": null,
"mail": "[email protected]",
"mailEnabled": true,
"mailNickname": "KM.Test-37",
"membershipRule": null,
"membershipRuleProcessingState": null,
"onPremisesDomainName": null,
"onPremisesLastSyncDateTime": null,
"onPremisesNetBiosName": null,
"onPremisesSamAccountName": null,
"onPremisesSecurityIdentifier": null,
"onPremisesSyncEnabled": null,
"preferredDataLocation": null,
"preferredLanguage": null,
"proxyAddresses": [
"SMTP:[email protected]"
],
"renewedDateTime": "2023-08-21T13:22:07Z",
"resourceBehaviorOptions": [
"subscribeNewGroupMembers"
],
"resourceProvisioningOptions": [],
"securityEnabled": false,
"securityIdentifier": "S-1-12-1-3320018770-1082391542-227842453-4183863700",
"theme": null,
"visibility": "Private",
"onPremisesProvisioningErrors": [],
"serviceProvisioningErrors": []
}
DONE
CLI for Microsoft 365 version
v6.8.0
nodejs version
v18.12.0
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
{
"os": {
"platform": "win32",
"version": "Windows 10 Pro",
"release": "10.0.22621"
},
"cliVersion": "6.8.0",
"nodeVersion": "v18.12.0",
"cliAadAppId": "31359c7f-bd7e-475c-86db-fdb8c937548e",
"cliAadAppTenant": "common",
"authMode": "Browser",
"cliEnvironment": "",
"cliConfig": {},
"roles": [],
"scopes": [
"AllSites.FullControl",
"AppCatalog.ReadWrite.All",
"AuditLog.Read.All",
"ChannelMember.ReadWrite.All",
"ChannelMessage.Read.All",
"ChannelMessage.Send",
"ChannelSettings.ReadWrite.All",
"Chat.Read",
"Chat.ReadWrite",
"Directory.AccessAsUser.All",
"Directory.ReadWrite.All",
"Group.ReadWrite.All",
"IdentityProvider.ReadWrite.All",
"Mail.ReadWrite",
"Mail.Send",
"Place.Read.All",
"Policy.Read.All",
"Reports.Read.All",
"SecurityEvents.Read.All",
"ServiceHealth.Read.All",
"ServiceMessage.Read.All",
"ServiceMessageViewpoint.Write",
"Tasks.ReadWrite",
"Team.Create",
"TeamMember.ReadWrite.All",
"TeamsApp.ReadWrite.All",
"TeamsAppInstallation.ReadWriteForUser",
"TeamSettings.ReadWrite.All",
"TeamsTab.ReadWrite.All",
"TermStore.ReadWrite.All",
"User.Invite.All",
"User.ReadWrite.All",
"profile",
"openid",
"email",
"AllSites.FullControl",
"AppCatalog.ReadWrite.All",
"AuditLog.Read.All",
"ChannelMember.ReadWrite.All",
"ChannelMessage.Read.All",
"ChannelMessage.Send",
"ChannelSettings.ReadWrite.All",
"Chat.Read",
"Chat.ReadWrite",
"Directory.AccessAsUser.All",
"Directory.ReadWrite.All",
"Group.ReadWrite.All",
"IdentityProvider.ReadWrite.All",
"Mail.ReadWrite",
"Mail.Send",
"Place.Read.All",
"Policy.Read.All",
"Reports.Read.All",
"SecurityEvents.Read.All",
"ServiceHealth.Read.All",
"ServiceMessage.Read.All",
"ServiceMessageViewpoint.Write",
"Tasks.ReadWrite",
"Team.Create",
"TeamMember.ReadWrite.All",
"TeamsApp.ReadWrite.All",
"TeamsAppInstallation.ReadWriteForUser",
"TeamSettings.ReadWrite.All",
"TeamsTab.ReadWrite.All",
"TermStore.ReadWrite.All",
"User.Invite.All",
"User.ReadWrite.All",
"AllSites.FullControl",
"AppCatalog.ReadWrite.All",
"AuditLog.Read.All",
"ChannelMember.ReadWrite.All",
"ChannelMessage.Read.All",
"ChannelMessage.Send",
"ChannelSettings.ReadWrite.All",
"Chat.Read",
"Chat.ReadWrite",
"Directory.AccessAsUser.All",
"Directory.ReadWrite.All",
"Group.ReadWrite.All",
"IdentityProvider.ReadWrite.All",
"Mail.ReadWrite",
"Mail.Send",
"Place.Read.All",
"Policy.Read.All",
"Reports.Read.All",
"SecurityEvents.Read.All",
"ServiceHealth.Read.All",
"ServiceMessage.Read.All",
"ServiceMessageViewpoint.Write",
"Tasks.ReadWrite",
"Team.Create",
"TeamMember.ReadWrite.All",
"TeamsApp.ReadWrite.All",
"TeamsAppInstallation.ReadWriteForUser",
"TeamSettings.ReadWrite.All",
"TeamsTab.ReadWrite.All",
"TermStore.ReadWrite.All",
"User.Invite.All",
"User.ReadWrite.All"
]
}
Additional Info
No response
Priority
(Medium) I'm annoyed but I'll live
Description
Upon running aad o365group add with --subscribeNewGroupMembers and without --allowMembersToPost, the resulting group: (i) does not have subscribe new members; and (ii) does not accept email from external addresses.
Steps to reproduce
Running the following code, then checking the group options in the microsoft admin center:
m365 aad o365group add --displayName "Test-37" --description "Test Desc" --mailNickname "KM.Test-37"--subscribeNewGroupMembers --isPrivateExpected results
The group that is created should have subscribenewgroupmembers enabled and should accept emails from external addresses.
Actual results
The group that is created has subscribenewgroupmembers disabled and does not accept email from external addresses.

Diagnostics
Executing command aad o365group add with options {"options":{"subscribeNewGroupMembers":true,"displayName":"Test-37","description":"Test Desc","mailNickname":"KM.Test-37","isPrivate":true,"debug":true,"output":"json"}}
Creating Microsoft 365 Group...
No users to validate, skipping.
No users to validate, skipping.
Existing access token ... still valid. Returning...
Request:
{
"url": "https://graph.microsoft.com/v1.0/groups",
"method": "post",
"headers": {
"common": {
"Accept": "application/json, text/plain, /"
},
"delete": {},
"get": {},
"head": {},
"post": {
"Content-Type": "application/x-www-form-urlencoded"
},
"put": {
"Content-Type": "application/x-www-form-urlencoded"
},
"patch": {
"Content-Type": "application/x-www-form-urlencoded"
},
"user-agent": "NONISV|SharePointPnP|CLIMicrosoft365/6.8.0",
"accept-encoding": "gzip, deflate",
"X-ClientService-ClientTag": "M365CLI:6.8.0",
"accept": "application/json;odata.metadata=none",
"authorization": "Bearer ..."
},
"responseType": "json",
"decompress": true,
"data": {
"description": "Test Desc",
"displayName": "Test-37",
"groupTypes": [
"Unified"
],
"mailEnabled": true,
"mailNickname": "KM.Test-37",
"resourceBehaviorOptions": [
"subscribeNewGroupMembers"
],
"securityEnabled": false,
"visibility": "Private"
}
}
Response:
{
"url": "https://graph.microsoft.com/v1.0/groups",
"status": 201,
"statusText": "Created",
"headers": {
"cache-control": "no-cache",
"transfer-encoding": "chunked",
"content-type": "application/json;odata.metadata=none;odata.streaming=true;IEEE754Compatible=false;charset=utf-8",
"location": "https://graph.microsoft.com/v2/99ef6887-0280-42f2-abc1-074bc825ec41/directoryObjects/c5e37752-fbf6-4083-9599-940d94b160f9/Microsoft.DirectoryServices.Group",
"vary": "Accept-Encoding",
"strict-transport-security": "max-age=31536000",
"request-id": "4bd0f79f-e1b1-41a7-8ef3-ce42e4d90697",
"client-request-id": "4bd0f79f-e1b1-41a7-8ef3-ce42e4d90697",
"x-ms-ags-diagnostic": "{"ServerInfo":{"DataCenter":"West Europe","Slice":"E","Ring":"5","ScaleUnit":"005","RoleInstance":"AM4PEPF0001513D"}}",
"x-ms-resource-unit": "1",
"odata-version": "4.0",
"date": "Mon, 21 Aug 2023 13:22:07 GMT",
"connection": "close"
},
"data": {
"id": "c5e37752-fbf6-4083-9599-940d94b160f9",
"deletedDateTime": null,
"classification": null,
"createdDateTime": "2023-08-21T13:22:07Z",
"creationOptions": [
"ExchangeProvisioningFlags:2020"
],
"description": "Test Desc",
"displayName": "Test-37",
"expirationDateTime": null,
"groupTypes": [
"Unified"
],
"isAssignableToRole": null,
"mail": "[email protected]",
"mailEnabled": true,
"mailNickname": "KM.Test-37",
"membershipRule": null,
"membershipRuleProcessingState": null,
"onPremisesDomainName": null,
"onPremisesLastSyncDateTime": null,
"onPremisesNetBiosName": null,
"onPremisesSamAccountName": null,
"onPremisesSecurityIdentifier": null,
"onPremisesSyncEnabled": null,
"preferredDataLocation": null,
"preferredLanguage": null,
"proxyAddresses": [
"SMTP:[email protected]"
],
"renewedDateTime": "2023-08-21T13:22:07Z",
"resourceBehaviorOptions": [
"subscribeNewGroupMembers"
],
"resourceProvisioningOptions": [],
"securityEnabled": false,
"securityIdentifier": "S-1-12-1-3320018770-1082391542-227842453-4183863700",
"theme": null,
"visibility": "Private",
"onPremisesProvisioningErrors": [],
"serviceProvisioningErrors": []
}
}
logoPath not set. Skipping
{
"id": "c5e37752-fbf6-4083-9599-940d94b160f9",
"deletedDateTime": null,
"classification": null,
"createdDateTime": "2023-08-21T13:22:07Z",
"creationOptions": [
"ExchangeProvisioningFlags:2020"
],
"description": "Test Desc",
"displayName": "Test-37",
"expirationDateTime": null,
"groupTypes": [
"Unified"
],
"isAssignableToRole": null,
"mail": "[email protected]",
"mailEnabled": true,
"mailNickname": "KM.Test-37",
"membershipRule": null,
"membershipRuleProcessingState": null,
"onPremisesDomainName": null,
"onPremisesLastSyncDateTime": null,
"onPremisesNetBiosName": null,
"onPremisesSamAccountName": null,
"onPremisesSecurityIdentifier": null,
"onPremisesSyncEnabled": null,
"preferredDataLocation": null,
"preferredLanguage": null,
"proxyAddresses": [
"SMTP:[email protected]"
],
"renewedDateTime": "2023-08-21T13:22:07Z",
"resourceBehaviorOptions": [
"subscribeNewGroupMembers"
],
"resourceProvisioningOptions": [],
"securityEnabled": false,
"securityIdentifier": "S-1-12-1-3320018770-1082391542-227842453-4183863700",
"theme": null,
"visibility": "Private",
"onPremisesProvisioningErrors": [],
"serviceProvisioningErrors": []
}
DONE
CLI for Microsoft 365 version
v6.8.0
nodejs version
v18.12.0
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
{
"os": {
"platform": "win32",
"version": "Windows 10 Pro",
"release": "10.0.22621"
},
"cliVersion": "6.8.0",
"nodeVersion": "v18.12.0",
"cliAadAppId": "31359c7f-bd7e-475c-86db-fdb8c937548e",
"cliAadAppTenant": "common",
"authMode": "Browser",
"cliEnvironment": "",
"cliConfig": {},
"roles": [],
"scopes": [
"AllSites.FullControl",
"AppCatalog.ReadWrite.All",
"AuditLog.Read.All",
"ChannelMember.ReadWrite.All",
"ChannelMessage.Read.All",
"ChannelMessage.Send",
"ChannelSettings.ReadWrite.All",
"Chat.Read",
"Chat.ReadWrite",
"Directory.AccessAsUser.All",
"Directory.ReadWrite.All",
"Group.ReadWrite.All",
"IdentityProvider.ReadWrite.All",
"Mail.ReadWrite",
"Mail.Send",
"Place.Read.All",
"Policy.Read.All",
"Reports.Read.All",
"SecurityEvents.Read.All",
"ServiceHealth.Read.All",
"ServiceMessage.Read.All",
"ServiceMessageViewpoint.Write",
"Tasks.ReadWrite",
"Team.Create",
"TeamMember.ReadWrite.All",
"TeamsApp.ReadWrite.All",
"TeamsAppInstallation.ReadWriteForUser",
"TeamSettings.ReadWrite.All",
"TeamsTab.ReadWrite.All",
"TermStore.ReadWrite.All",
"User.Invite.All",
"User.ReadWrite.All",
"profile",
"openid",
"email",
"AllSites.FullControl",
"AppCatalog.ReadWrite.All",
"AuditLog.Read.All",
"ChannelMember.ReadWrite.All",
"ChannelMessage.Read.All",
"ChannelMessage.Send",
"ChannelSettings.ReadWrite.All",
"Chat.Read",
"Chat.ReadWrite",
"Directory.AccessAsUser.All",
"Directory.ReadWrite.All",
"Group.ReadWrite.All",
"IdentityProvider.ReadWrite.All",
"Mail.ReadWrite",
"Mail.Send",
"Place.Read.All",
"Policy.Read.All",
"Reports.Read.All",
"SecurityEvents.Read.All",
"ServiceHealth.Read.All",
"ServiceMessage.Read.All",
"ServiceMessageViewpoint.Write",
"Tasks.ReadWrite",
"Team.Create",
"TeamMember.ReadWrite.All",
"TeamsApp.ReadWrite.All",
"TeamsAppInstallation.ReadWriteForUser",
"TeamSettings.ReadWrite.All",
"TeamsTab.ReadWrite.All",
"TermStore.ReadWrite.All",
"User.Invite.All",
"User.ReadWrite.All",
"AllSites.FullControl",
"AppCatalog.ReadWrite.All",
"AuditLog.Read.All",
"ChannelMember.ReadWrite.All",
"ChannelMessage.Read.All",
"ChannelMessage.Send",
"ChannelSettings.ReadWrite.All",
"Chat.Read",
"Chat.ReadWrite",
"Directory.AccessAsUser.All",
"Directory.ReadWrite.All",
"Group.ReadWrite.All",
"IdentityProvider.ReadWrite.All",
"Mail.ReadWrite",
"Mail.Send",
"Place.Read.All",
"Policy.Read.All",
"Reports.Read.All",
"SecurityEvents.Read.All",
"ServiceHealth.Read.All",
"ServiceMessage.Read.All",
"ServiceMessageViewpoint.Write",
"Tasks.ReadWrite",
"Team.Create",
"TeamMember.ReadWrite.All",
"TeamsApp.ReadWrite.All",
"TeamsAppInstallation.ReadWriteForUser",
"TeamSettings.ReadWrite.All",
"TeamsTab.ReadWrite.All",
"TermStore.ReadWrite.All",
"User.Invite.All",
"User.ReadWrite.All"
]
}
Additional Info
No response