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 | Development
Microsoft Teams | Development
Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
Microsoft Teams | Microsoft Teams for business | Other
{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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.