Share via

Graphic explorer

Anonymous
2023-08-30T21:31:56.2066667+00:00

Hi!,

I am trying to get all chat list from my Teams and add a particular user to each of the chat.

When I do 'list chat', it gets a list of chat but only 19 or 20 chat rooms. I have more than 100 chat rooms(not Teams channel) and I want list all of 100 chat rooms.

Is there any limitation to call the list of chat?

Thanks!!

Import-Module Microsoft.Graph.Teams

Connect-MgGraph -Scopes "User.Read.All", "Group.ReadWrite.All", "Chat.Create", "Chat.ReadWrite", "Chat.ReadBasic", "Chat.Read"

$userId = "******@elementsconnect.com"

Get-MgUserChat -UserId $userId -ExpandProperty "members"

Microsoft Teams | Development
Microsoft Teams | Development

Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs

Microsoft Security | Microsoft Graph
Microsoft Teams | Microsoft Teams for business | Other
0 comments No comments

Answer accepted by question author

Nathan Giannini 161 Reputation points
2023-08-30T23:35:37.7733333+00:00

Hi Jaejung,

Did you try using the -All parameter?

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.