Skip to content

New command: List the members of a Microsoft Teams chat conversation for the current user #2896

@martinlingstuyl

Description

@martinlingstuyl

Usage

m365 teams chat member list [options]

Description

List the members of a chat conversation

Options

Option Description
-i, --chatId <chatId> The chat ID / Conversation ID of the Microsoft Teams Chat.

Additional Info

We can use the Graph API end point - v1.0/chats/chatId/members as per this documentation.

New Azure AD Permissions

Just like #2893 and #2860 we'll need Graph permissions. In this case: ChatMember.Read, ChatMember.ReadWrite, Chat.ReadBasic, Chat.Read or Chat.ReadWrite. Currently the AAD App which is being used by CLI for Microsoft 365 (PnP Management Shell) does not have the permission setup. Once the PR is completed, the permission may have to applied to the AAD App.
I would think using a single permission level (Chat.Read) covers all three commands best.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions