Skip to content

Microsoft Graph v1.0: teams channel get #2505

@garrytrinder

Description

@garrytrinder

The teams channel get command uses the beta endpoint to filter groups as shown below.

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 requestOptions: 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'
};

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions