The resourceProvisioningOptions filter is not supported in the v1.0 endpoint, but the displayName filter is, therefore we should implement the v1.0 endpoint in the request, keeping the displayName filter but removing the resourceProvisioningOptions filter, then filter the request response using JavaScript to remove any groups that are not Teams.
|
const teamRequestOptions: any = { |
|
url: `${this.resource}/beta/groups?$filter=resourceProvisioningOptions/Any(x:x eq 'Team') and displayName eq '${encodeURIComponent(args.options.teamName as string)}'`, |
|
headers: { |
|
accept: 'application/json;odata.metadata=none' |
|
}, |
|
responseType: 'json' |
|
}; |
The
resourceProvisioningOptionsfilter is not supported in the v1.0 endpoint, but thedisplayNamefilter is, therefore we should implement thev1.0endpoint in the request, keeping thedisplayNamefilter but removing theresourceProvisioningOptionsfilter, then filter the request response using JavaScript to remove any groups that are not Teams.cli-microsoft365/src/m365/teams/commands/conversationmember/conversationmember-add.ts
Lines 166 to 172 in 1bae1ad