Skip to content

Bug report: command returns double response #5385

@Jwaegebaert

Description

@Jwaegebaert

Priority

(Urgent) I can't use the CLI

Description

When you use the m365 spo group list command with just the --webUrl option, you'll see a list of all the groups on the web. But things change when you add the --associatedGroupsOnly option. In this case, the response you get gives you the same result twice.

Steps to reproduce

Use the command m365 spo group list with the option --associatedGroupsOnly

Expected results

Get all the associated groups once 😄

Actual results

You'll get a response that looks like this:

{
  "AssociatedMemberGroup": {
    "Id": 5,
    "IsHiddenInUI": false,
    "LoginName": "TestSite Members",
    "Title": "TestSite Members",
    "PrincipalType": 8,
    "AllowMembersEditMembership": true,
    "AllowRequestToJoinLeave": false,
    "AutoAcceptRequestToJoinLeave": false,
    "Description": null,
    "OnlyAllowMembersViewMembership": false,
    "OwnerTitle": "TestSite Owners",
    "RequestToJoinLeaveEmailSetting": ""
  },
  "AssociatedOwnerGroup": {
    "Id": 3,
    "IsHiddenInUI": false,
    "LoginName": "TestSite Owners",
    "Title": "TestSite Owners",
    "PrincipalType": 8,
    "AllowMembersEditMembership": false,
    "AllowRequestToJoinLeave": false,
    "AutoAcceptRequestToJoinLeave": false,
    "Description": null,
    "OnlyAllowMembersViewMembership": false,
    "OwnerTitle": "TestSite Owners",
    "RequestToJoinLeaveEmailSetting": ""
  },
  "AssociatedVisitorGroup": {
    "Id": 4,
    "IsHiddenInUI": false,
    "LoginName": "TestSite Visitors",
    "Title": "TestSite Visitors",
    "PrincipalType": 8,
    "AllowMembersEditMembership": false,
    "AllowRequestToJoinLeave": false,
    "AutoAcceptRequestToJoinLeave": false,
    "Description": null,
    "OnlyAllowMembersViewMembership": false,
    "OwnerTitle": "TestSite Owners",
    "RequestToJoinLeaveEmailSetting": ""
  }
}
{
  "AssociatedMemberGroup": {
    "Id": 5,
    "IsHiddenInUI": false,
    "LoginName": "TestSite Members",
    "Title": "TestSite Members",
    "PrincipalType": 8,
    "AllowMembersEditMembership": true,
    "AllowRequestToJoinLeave": false,
    "AutoAcceptRequestToJoinLeave": false,
    "Description": null,
    "OnlyAllowMembersViewMembership": false,
    "OwnerTitle": "TestSite Owners",
    "RequestToJoinLeaveEmailSetting": ""
  },
  "AssociatedOwnerGroup": {
    "Id": 3,
    "IsHiddenInUI": false,
    "LoginName": "TestSite Owners",
    "Title": "TestSite Owners",
    "PrincipalType": 8,
    "AllowMembersEditMembership": false,
    "AllowRequestToJoinLeave": false,
    "AutoAcceptRequestToJoinLeave": false,
    "Description": null,
    "OnlyAllowMembersViewMembership": false,
    "OwnerTitle": "TestSite Owners",
    "RequestToJoinLeaveEmailSetting": ""
  },
  "AssociatedVisitorGroup": {
    "Id": 4,
    "IsHiddenInUI": false,
    "LoginName": "TestSite Visitors",
    "Title": "TestSite Visitors",
    "PrincipalType": 8,
    "AllowMembersEditMembership": false,
    "AllowRequestToJoinLeave": false,
    "AutoAcceptRequestToJoinLeave": false,
    "Description": null,
    "OnlyAllowMembersViewMembership": false,
    "OwnerTitle": "TestSite Owners",
    "RequestToJoinLeaveEmailSetting": ""
  }
}

Diagnostics

/

CLI for Microsoft 365 version

v6.10.0

nodejs version

v18.16.0

Operating system (environment)

Windows

Shell

PowerShell

cli doctor

/

Additional Info

/

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions