You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lobby admit and reject are the apis on `Call` or `TeamsCall`. It allows user to admit and reject participants from Teams meeting lobby. You first need to import `Call` or `TeamsCall` deom the Calling SDK:
15
+
Lobby admit and reject are the apis on `Call` or `TeamsCall`. It allows user to admit and reject participants from Teams meeting lobby.
16
16
17
17
# Manage participants in Teams meeting Lobby
18
18
19
-
In this article you will learn how to admit and reject participants from Microsoft Teams meetings lobby by using Azure Communication Service calling SDKs.
19
+
In this article, you will learn how to admit and reject participants from Microsoft Teams meetings lobby by using Azure Communication Service calling SDKs.
20
20
21
21
## Prerequisites
22
22
@@ -25,30 +25,55 @@ In this article you will learn how to admit and reject participants from Microso
25
25
- A user access token to enable the calling client. For more information, see [Create and manage access tokens](../../quickstarts/access-tokens.md).
26
26
- Optional: Complete the quickstart to [add voice calling to your application](../../quickstarts/voice-video-calling/getting-started-with-calling.md)
27
27
28
+
User ends up in the lobby depending on Microsoft Teams configuration. The controls are described here:
29
+
[Learn more about Teams configuration ](https://learn.microsoft.com/en-us/azure/communication-services/concepts/interop/guest/teams-administration)
30
+
28
31
Microsoft 365 or Azure Communication Services users can admit or reject users from lobby, if they are connected to Teams meeting and have Organizer, Co-organizer, or Presenter meeting role.
29
32
[Learn more about meeting roles](https://support.microsoft.com/office/roles-in-a-teams-meeting-c16fa7d0-1666-4dde-8686-0a0bfe16e019)
30
33
34
+
To update or check current meeting join & lobby policies in Teams admin center:
35
+
[Learn more about Teams policies ](https://learn.microsoft.com/en-us/microsoftteams/settings-policies-reference#automatically-admit-people)
36
+
37
+
38
+
### Get remote participant properties
39
+
40
+
The first thing is to get the `Call` or `TeamsCall` object of admitter: [Learn how to join Teams meeting](./teams-interoperability.md)
41
+
42
+
To know who is in the lobby, you could check the state of a remote participant. The `remoteParticipant` with `InLobby` state indicates that remote participant is in lobby.
Before admit or reject `remoteParticipant` with `InLobby` state, you could get the identifier for a remote participant:
53
+
```js
54
+
constidentifier=remoteParticipant.identifier;
55
+
```
56
+
57
+
The `identifier` can be one of the following `CommunicationIdentifier` types:
58
+
59
+
-`{ communicationUserId: '<COMMUNICATION_SERVICES_USER_ID'> }`: Object representing the Azure Communication Services user.
60
+
-`{ phoneNumber: '<PHONE_NUMBER>' }`: Object representing the phone number in E.164 format.
61
+
-`{ microsoftTeamsUserId: '<MICROSOFT_TEAMS_USER_ID>', isAnonymous?: boolean; cloud?: "public" | "dod" | "gcch" }`: Object representing the Teams user.
62
+
-`{ id: string }`: object representing identifier that doesn't fit any of the other identifier types
63
+
64
+
### Start lobby operations
65
+
31
66
To admit, reject or admit all users from the lobby, you can use the `admit`, `rejectParticipant` and `admitAll` asynchronous APIs:
32
67
33
68
You can admit specific user to the Teams meeting from lobby by calling the method `admit` on the object `TeamsCall` or `Call`. The method accepts identifiers `MicrosoftTeamsUserIdentifier`, `CommunicationUserIdentifier`, `PhoneNumberIdentifier` or `UnknownIdentifier` as input.
You can also reject specific user to the Teams meeting from lobby by calling the method `rejectParticipant` on the object `TeamsCall` or `Call`. The method accepts identifiers `MicrosoftTeamsUserIdentifier`, `CommunicationUserIdentifier`, `PhoneNumberIdentifier` or `UnknownIdentifier` as input.
0 commit comments