Hello @Jeroen H - Thanks for raising your query.
You can simply decode the generated user token and can get the user information like user UPN/email/Entra ID etc.
Please let us know if you still have any query.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi everyone, I'm currently developing an app in Teams that uses the Communication Services calling SDK to fire an event when the user is called. For this purpose, the user logs in and an Entra ID token and Teams user access token are generated. I would also like to authenticate the user to our own database (as it is a CTI application). If I could get the user's email address with either token then that would be sufficient for this task. Is there a way to get that info with these tokens? I already tried getting the profile info from MS Graph using the Entra token, but creates a 'InvalidAuthenticationToken' error, stating 'KeyWrapFailed' as a message. Weirdly enough, using the same authentication code to create the Entra ID token to create a token from MS Graph in Postman works just fine, and this token actually is able to get the user profile in Graph, but doesn't work for generating the Teams user access token.
Tldl: how do I get a Teams user's email with the use of their Entra ID and Teams user access token? The Entra ID Token gives errors when attempted to use in MS Graph.
Hello @Jeroen H - Thanks for raising your query.
You can simply decode the generated user token and can get the user information like user UPN/email/Entra ID etc.
Please let us know if you still have any query.