Unknown users contact details are hidden in teams getting error from graph api while retrieving message

Suryakant Bhasate, Smita 0 Reputation points
2024-08-29T07:19:48.9966667+00:00

Unknown users contact details are hidden in teams getting error from graph API while retrieving message

We are using Microsoft Graph API "https://graph.microsoft.com/beta/teams/{group-id-for-teams}/channels/{channel-id}/messages/" for the same and getting the above error.

Attached the screenshot for the same.TeamsIssue.png

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,978 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,208 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Suryakant Bhasate, Smita 0 Reputation points
    2024-08-30T10:15:57.2866667+00:00

    Post method - "https://graph.microsoft.com/beta/teams/{teamsid}/channels/{channelid}/messages" to send the messages

    by creating the request object in api and mentioning someone using ChatMessageMentionedIdentitySet class.

    Once we post the message with mentioned user the message do get posted to teams side. But we are seeing Unknown users contact details are hidden in teams and at code level it is showing InternalServerError and failed to process request.

    Once we post the method with mentioned user in the message and call the below api

    GET method https://graph.microsoft.com/beta/teams/{group-id-for-teams}/channels/{channel-id}/messages/{message-id}

    intermittently it is showing only few messages and not the whole list


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.