Share via

Graph Api teams chat API return corrupted response for topic field

Rajitha Perera 106 Reputation points
2023-06-12T07:23:40.3966667+00:00

Hi team ,

I have faced some issues due to getting some wrong info through the below graph API

API - https://graph.microsoft.com/beta/chats?$expand=members
I have attached the response I received, but the id type of value should not be included in the topic value.

Topic value - **8:orgid:b757c088-082c-4e0d-b21c-9d558ae59c25, 8:orgid:68e7bcb9-1f7f-4ed9-b2d7-b494953b4a5b
**
How can I resolve this issue?
Thanks and Regards,
Rajitha.

{"@odata.context":"https://graph.microsoft.com/beta/$metadata#chats(members())","@odata.count":20,"@odata.nextLink":"https://graph.microsoft.com/beta/chats?$expand=members&$skiptoken=**************","value":[{"id":"**************@unq.gbl.spaces","topic":"8:orgid:b757c088-082c-4e0d-b21c-9d558ae59c25, 8:orgid:68e7bcb9-1f7f-4ed9-b2d7-b494953b4a5b","createdDateTime":"2018-10-02T03:05:43.718Z","lastUpdatedDateTime":"2018-12-06T10:21:42.139Z","chatType":"oneOnOne","webUrl":"https://teams.microsoft.com/l/chat/**************%40unq.gbl.spaces/0?tenantId=**************","tenantId":"**************","onlineMeetingInfo":null,"viewpoint":{"isHidden":false,"lastMessageReadDateTime":"2023-06-08T02:23:27.266Z"},"members@odata.context":"https://graph.microsoft.com/beta/$metadata#chats('**************-b21c-9d558ae59c25%40unq.gbl.spaces')/members","members":[{"@odata.type":"#microsoft.graph.aadUserConversationMember","id":"**************=","roles":["owner"],"displayName":"Joe **************","visibleHistoryStartDateTime":"0001-01-01T00:00:00Z","userId":"**************","email":"joe**************.jp","tenantId":"**************"},{"@odata.type":"#microsoft.graph.aadUserConversationMember","id":"**************=","roles":["owner"],"displayName":"Michael **************","visibleHistoryStartDateTime":"0001-01-01T00:00:00Z","userId":"**************","email":"michael**************jp","tenantId":"**************"}]}]
}

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
0 comments No comments

2 answers

Sort by: Most helpful
  1. Rajitha Perera 106 Reputation points
    2023-06-28T01:44:01.96+00:00

    Hi all,
    But can I know what is that value? The user is not set any that type of value actually in there. You can see attached JSon which provided kind of value. I need to know where its come from

    Thank you and sorry for the delay in reply

    Was this answer helpful?

    0 comments No comments

  2. CarlZhao-MSFT 46,456 Reputation points
    2023-06-12T08:32:17.5233333+00:00

    Hi @Rajitha Perera

    Chat subject/topic are only available for group chats, not one-on-one chats.

    User's image

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    Was this answer 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.