microsoft-graph-toolkit icon indicating copy to clipboard operation
microsoft-graph-toolkit copied to clipboard

[BUG] [MGT-CHAT] Cannot create new chats threads for groups

Open plasne opened this issue 1 year ago • 4 comments

Describe the bug We are not able to create a new chat to a group (o365 or security). Teams lets you select a group, but then it resolves the membership.

To Reproduce Steps to reproduce the behavior:

  1. Create a new chat.
  2. Type in the name of a group.
  3. Try to send
  4. See error

Expected behavior I would expect similar behavior to Teams.

Screenshots Here is an attempt to send to a security group:

image

Same error sending to an O365 group:

image

Environment (please complete the following information):

  • OS: macOS Monterey 12.7.3
  • Browser: Edge
  • Framework: React
  • Context: Web
  • Version: MGT v4
  • Provider: Msal2Provider

Additional context I am a MSFT FTE that can be reached on Teams at pelasne.

plasne avatar Feb 29 '24 18:02 plasne

This would be an unsupported scenario for now.

sebastienlevert avatar Feb 29 '24 18:02 sebastienlevert

This would be an unsupported scenario for now.

I still think there is something to be done: (a) block groups from showing in the list, or (b) throw an error to the end-user about it being unsupported. Right now it just mysteriously fails.

plasne avatar Feb 29 '24 19:02 plasne

Would it be acceptable to expose the type?: PersonType property in NewChat so that consumers can configure the component to only show "people"?

This would allow consumers to prevent the silent error state, and would avoid the need for requesting the "Group.Read.All" permission.

MattBillFred avatar Mar 06 '24 13:03 MattBillFred

I like this option. Thanks for suggesting @MattBillFred! Do you want to send a PR with the change? Thanks!

sebastienlevert avatar Mar 06 '24 14:03 sebastienlevert