OfficeDev / microsoft-teams-library-js

JavaScript library for use by Microsoft Teams apps
https://docs.microsoft.com/microsoftteams/platform/
Other
433 stars 199 forks source link

Bug: microsoftTeams.people.selectPeople results returning "UPN" in "email" field #2086

Closed LeonYasoon closed 2 weeks ago

LeonYasoon commented 11 months ago

Using microsoftTeams.people.selectPeople to open the people picker inside MS Teams shows a modal:

image

Searching for users fires an HTTP request to this endpoint: https://teams.microsoft.com/api/mt/part/emea-03/beta/users/searchV2 returning an array of matching user objects:

image

The email field of the response is actually the UPN of that user. That is a bug which is critical to our operations. Please investigate :)

SaiPratap-MSFT commented 11 months ago

@LeonYasoon - Thanks for reporting your issue. We will check and update you soon.

ChetanSharma-msft commented 11 months ago

Hello @LeonYasoon - Could you please confirm what should be the correct email id for that particular person?

Microsoft's recommended best practices are to match UPN to primary SMTP address.

Please refer this documentation: https://learn.microsoft.com/en-us/windows-server/identity/ad-fs/operations/configuring-alternate-login-id#what-is-alternate-login-id

You can refer this sample as well: https://github.com/OfficeDev/Microsoft-Teams-Samples/blob/main/samples/tab-device-permissions/nodejs/src/components/PeoplePicker.tsx

If you still have any issue, please let us know the below details: 1) Are you testing it in Classic or New Desktop or Web Teams client and please confirm if it is working in any. 2) Specific version of library used to call the microsoftTeams.people.selectPeople.

Thanks!!

LeonYasoon commented 11 months ago

Hi @ChetanSharma-msft The correct email for the particular person should be AlexMail@ty3hl.onmicrosoft.com

  1. This is not working in New Desktop, Classic Desktop and Web.
  2. We first started seeing this bug in Teams JS SDK version 2.0.0 and we are now on 2.16.0 and it is still happening.
ChetanSharma-msft commented 11 months ago

Hello @LeonYasoon - Sorry for delay in response. We have considered this as a feature request and engineering team will review it, the level of work required, and prioritize accordingly.

Currently we don't have exact ETA to share with you. We are checking with engineering team and let you know.

Reference issue link: https://github.com/OfficeDev/microsoft-teams-library-js/issues/1526 Feedback link: https://feedbackportal.microsoft.com/feedback/idea/743765c8-029b-ed11-a81b-000d3a0450e3

microsoft-github-policy-service[bot] commented 2 weeks ago

Tell us about your experience!

Hi LeonYasoon! We have closed this issue in our system, but we would love to hear your feedback. To let us know how we did, simply use one of the following emoji icons: :thumbsup: for resolved, :thumbsdown: for unresolved, or :heart: for a great experience on this message. Please use the link for more detailed feedback.

Best regards, Teams Platform