List chats with a specific user

Japheth Nolt 11 Reputation points
2021-02-03T18:47:14.28+00:00

I would like to list all chats that I am in that also include a specific user. I know I can do this:

https://graph.microsoft.com/beta/me/chats?$expand=members&$filter=members/any(o: o/displayName eq '<Display Name>')

but to enable a more deterministic search, it would be good to do:

https://graph.microsoft.com/beta/me/chats?$expand=members&$filter=members/any(o: o/userId eq '<AAD user id>')

Japheth

Microsoft Teams | Development
Microsoft Security | Microsoft Graph
{count} votes

2 answers

Sort by: Most helpful
  1. Japheth Nolt 11 Reputation points
    2021-02-09T13:13:47.263+00:00

    I was able to achieve this by doing:

    https://graph.microsoft.com/beta/me/chats?$expand=members&$filter=members/any(o: o/microsoft.graph.aadUserConversationMember/userId eq '<user id>')

    2 people found this answer helpful.
    0 comments No comments

  2. Nikitha-MSFT 541 Reputation points
    2021-02-08T06:32:18.967+00:00

    Could you please Raise a user voice?

    0 comments No comments

Your answer

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