Issue with /chats?$expand=members

Japheth Nolt 106 Reputation points
2021-02-05T20:24:10.987+00:00

I'm having an issue with /chats?$expand=members

This request returns data but the displayName, email, and tenantId properties on the members are all null, BUT only for users in my tenant. Users from other tenants show this information correctly.

The first 2 members in the sample below are from my tenant. The third member is an external user.

{​  
    "id": "<redacted>",  
    "topic": null,  
    "createdDateTime": "2016-11-02T17:28:43.781Z",  
    "lastUpdatedDateTime": "2021-02-01T19:42:00.055Z",  
    "chatType": "group",  
    "members@odata.context": "<redacted>",  
    "members": [  
        {​  
            "@odata.type": "#microsoft.graph.aadUserConversationMember",  
            "id": "<redacted>",  
            "roles": [],  
            "displayName": null,  
            "visibleHistoryStartDateTime": "0001-01-01T00:00:00Z",  
            "userId": "f<redacted>3",  
            "email": null,  
            "tenantId": null  
        }​,  
        {​  
            "@odata.type": "#microsoft.graph.aadUserConversationMember",  
            "id": "<redacted>",  
            "roles": [],  
            "displayName": null,  
            "visibleHistoryStartDateTime": "0001-01-01T00:00:00Z",  
            "userId": "1<redacted>a",  
            "email": null,  
            "tenantId": null  
        }​,  
        {  
            "@odata.type": "#microsoft.graph.aadUserConversationMember",  
            "id": "<redacted>",  
            "roles": [],  
            "displayName": "n<redacted>m",  
            "visibleHistoryStartDateTime": "0001-01-01T00:00:00Z",  
            "userId": "0<redacted>7",  
            "email": "n<redacted>m",  
            "tenantId": "72<redacted>47"  
        }  
    ]  
}​  
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,850 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.
2,918 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Deva-MSFT 2,256 Reputation points Microsoft Employee
    2021-02-06T18:21:11.673+00:00
    • I tried repro the issue with Graph Explorer and POSTMAN with the above Graph API call and i failed to repro it.
    • It works for me!!

    If there any additional steps please share so that i can give a try as well.

    0 comments No comments