MicrosoftDocs / msteams-docs

Source for the Microsoft Teams developer platform documentation.
https://aka.ms/teamsdev
Creative Commons Attribution 4.0 International
280 stars 501 forks source link

Issue while fetching details of some users of group chat using bot connector api #11284

Open pranitamg opened 1 month ago

pranitamg commented 1 month ago

Steps to reproduce

  1. Add your test application to one of your group chat.
  2. Follow the documentation: https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/get-teams-context?tabs=json
  3. From the above documentation, use the link /v3/conversations/{conversationId}/pagedmembers?pageSize={pageSize}&continuationToken={continuationToken} to fetch members of group chat.

Expected behavior

It should return the details of all the members of group chat.

{ "continuationToken":"asdfqwerueiqpiewr", "members":[ { "id":"29:1bSnHZ7Js2STWrgk6ScEErLk1Lp2zQuD5H2qQ960rtvstKp8tKLl-3r8b6DoW0QxZimuTxk_kupZ1DBMpvIQQUAZL-PNj0EORDvRZXy8kvWk", "objectId":"76b0b09f-d410-48fd-993e-84da521a597b", "givenName":"John", "surname":"Patterson", "email":"johnp@fabrikam.com", "userPrincipalName":"johnp@fabrikam.com", "tenantId":"29:1UX7p8Fkx7p93MZlBFS71swTB9juQOCfnXf2L3wxOUITCcIGpFcRX-JiFjLDVZhxGpEfzSTGNsZeEyTKr1iu3Vw", "userRole":"user" }, { "id":"29:1URzNQM1x1PNMr1D7L5_lFe6qF6gEfAbkdG8_BUxOW2mTKryQqEZtBTqDt10-MghkzjYDuUj4KG6nvg5lFAyjOLiGJ4jzhb99WrnI7XKriCs", "objectId":"6b7b3b2a-2c4b-4175-8582-41c9e685c1b5", "givenName":"Rick", "surname":"Stevens", "email":"Rick.Stevens@fabrikam.com", "userPrincipalName":"rstevens@fabrikam.com", "tenantId":"29:1UX7p8Fkx7p93MZlBFS71swTB9juQOCfnXf2L3wxOUITCcIGpFcRX-JiFjLDVZhxGpEfzSTGNsZeEyTKr1iu3Vw", "userRole":"user" } ] }

Actual behavior

For some users it returns only id, tenantid and userRole.

{ "continuationToken":"asdfqwerueiqpiewr", "members":[ { "id":"29:1bSnHZ7Js2STWrgk6ScEErLk1Lp2zQuD5H2qQ960rtvstKp8tKLl-3r8b6DoW0QxZimuTxk_kupZ1DBMpvIQQUAZL-PNj0EORDvRZXy8kvWk", "objectId":"76b0b09f-d410-48fd-993e-84da521a597b", "givenName":"John", "surname":"Patterson", "email":"johnp@fabrikam.com", "userPrincipalName":"johnp@fabrikam.com", "tenantId":"29:1UX7p8Fkx7p93MZlBFS71swTB9juQOCfnXf2L3wxOUITCcIGpFcRX-JiFjLDVZhxGpEfzSTGNsZeEyTKr1iu3Vw", "userRole":"user" }, { "id":"29:1URzNQM1x1PNMr1D7L5_lFe6qF6gEfAbkdG8_BUxOW2mTKryQqEZtBTqDt10-MghkzjYDuUj4KG6nvg5lFAyjOLiGJ4jzhb99WrnI7XKriCs",, "tenantId":"29:1UX7p8Fkx7p93MZlBFS71swTB9juQOCfnXf2L3wxOUITCcIGpFcRX-JiFjLDVZhxGpEfzSTGNsZeEyTKr1iu3Vw", "userRole":"user" } ] }

Error details

Could you please elaborate help me understand why some users' complete data isn't being returned?

microsoft-github-policy-service[bot] commented 1 month ago

Hi pranitamg! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

Meghana-MSFT commented 1 month ago

Thank you for reporting this, we will check this and get back to you.

Meghana-MSFT commented 1 month ago

@pranitamg - We are not able to repro this issue, we are getting all the details for all the users. We will check this internally and get back to you.