Generate Teams meeting link for an ACS meeting with the same user profile

Zsombor Horváth 0 Reputation points
2023-01-28T12:33:10.42+00:00

I am creating an application where a random user can click on a button (so the user is not logged in) and it will initiate a call with a receptionist who is a logged-in user. I am using ACS with the basic frontend adapter on both ends and I would like to generate a teams meeting link every time a random user clicks on the button. I am getting the credentials using the CommunicationIdentityClient with the connection string for the ACS front end. On the other hand, I create a meeting link (using the onlineMeetings endpoint) with the credentials of the receptionist who is logged in with the MS SSO. The problem is that when the receptionist and the client try to connect to each other through the meeting link, it says that "Waiting to be admitted". This is probably because the ACS creates a brand new user and it doesn't match the creator of the meeting link. So I have two questions: 1. Is it possible to create a meeting link where the users don't have to wait for the creator of the meeting to join and they can join automatically? 2. Is it possible to create the ACS credentials for the receptionist (and not create a new ACS user every time) who will then create the meeting link, so basically, he will become the owner, and if he joins that everything will work?

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
694 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,715 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 15,256 Reputation points Microsoft Employee
    2023-02-08T07:13:48.8066667+00:00

    Yes, it is possible to create a meeting link where the users don't have to wait for the creator of the meeting to join and they can join automatically. You can set the "Who can bypass the lobby?" meeting policy/setting to "Everyone" in the Teams meeting settings.

    As for your second question, it is possible to create the ACS credentials for the receptionist and use them to create the meeting link. This way, the receptionist will become the owner of the meeting and will be able to join the meeting without any issues. You can use the CommunicationIdentityClient to create the ACS credentials for the receptionist and then use the onlineMeetings endpoint to create the meeting link.

    Here is an example of how you can create the ACS credentials for the receptionist:

    const identityClient = new CommunicationIdentityClient(connectionString);
    const tokenCredential = await identityClient.createTokenCredential();
    

    And here is an example of how you can create the meeting link:

    const onlineMeetingsClient = new OnlineMeetingsClient(tokenCredential);
    const meeting = await onlineMeetingsClient.createMeeting();
    const joinUrl = meeting.joinWebUrl;
    

    You can then use the joinUrl to join the meeting.

    Please let me know if you have any other questions or if there is anything else I can help you with.