Share via

How to fix issue related to teams user token. I am getting errors to start teams meeting and chat thread using team user token (Getting error 403)

Prashant Mallavarpu 0 Reputation points
2023-06-08T06:35:55.9466667+00:00

I am facing issue with communication service. I am using for integrate teams call and chat for a teams user. I am using this (https://github.com/Azure-Samples/communication-services-authentication-hero-nodejs) demo, this demo is based on react & node js.

I am trying to login as teams user

image

we are able to login and genrate required token

  1. AAD Access Token
  2. AAD Token for a Teams user (with Teams.ManageCalls and Teams.ManageChats permissions)
  3. Communication Token

After addin meeting link, we are facing below errors.
User's image

Request URL:
https://edge.skype.com/registrar/prod/v3/registrations
Request Method:
POST
Status Code:
403
Remote Address:
13.107.3.128:443
Referrer Policy:
strict-origin-when-cross-origin

Request Payload

{"clientDescription":{"appId":"AcsWeb","aesKey":"","languageId":"en-US","platform":"SPOOL","templateKey":"AcsWeb_Chat_1.2","platformUIVersion":"0.0.0"},"registrationId":"f65080a4-00c0-48bd-9f0e-72242d95ee3d","nodeId":"","transports":{"TROUTER":[{"context":"","path":"https://trouter-azsc-asse-0-b.trouter.skype.com:3443/v4/f/29mkP0iHw0eRXboLtc0vZw/","ttl":7200}]}}

Response

{     
	"message": "Request from CustomTeamsEndpoint contains templateKey 		AcsWeb_Chat_1.2 that is not in the list of allowed templateKeys",     "code": 40305 
}

We are good in call but this issue is related to chat.

Apart from it we are facing issue to display name for teams user.

Thanks in advance.

Azure Communication Services
Microsoft 365 and Office | Development | Office JavaScript API
Microsoft Teams | Development
Microsoft Teams | Development

Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs

Microsoft Security | Microsoft Graph
Microsoft Teams | Microsoft Teams for business | Other

1 answer

Sort by: Most helpful
  1. Ryan Hill 30,336 Reputation points Microsoft Employee Moderator
    2023-07-07T14:48:25.8433333+00:00

    Hi @Prashant Mallavarpu , I've followed up with the team.

    It's not completely clear if the issue is with the CTE user joining the Teams meeting or CTE user trying to chat.However, if you're looking for the CTE user (Teams user via ACS SDK) chat support via ACS SDK, that currently does not exist today. The only Teams interop supported chat is with ACS-Teams meeting interop which requires the ACS user to successfully join the meeting first.

    If you're attempting to have to CTE user join the Teams meeting first and that user is not able to, then that could potentially be an issue. Please provide the callid so the team can investigate further.

    Was this answer helpful?

    0 comments No comments

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.