@@ -31,27 +31,9 @@ Find the finalized code for this quickstart on [GitHub](https://github.com/Azure
31
31
- A [ Teams deployment] ( /deployoffice/teams-install ) .
32
32
- An [ access token] ( ../identity/access-tokens.md ) .
33
33
34
- ## Get the Teams user IDs
35
-
36
- The Teams user IDs can be retrieved using Graph APIs, which is detailed in [ Graph documentation] ( /graph/api/user-get?tabs=http ) .
37
-
38
- ``` console
39
- https://graph.microsoft.com/v1.0/me
40
- ```
41
-
42
- In results get the "id" field.
43
-
44
- ``` json
45
- "userPrincipalName" :
" [email protected] " ,
46
- "id" : " 31a011c2-2672-4dd0-b6f9-9334ef4999db"
47
- ```
48
-
49
- Or the same ID could be found in [ Azure portal] ( https://aka.ms/portal ) in Users tab:
50
- ![ User Object ID in Azure Portal] ( ./includes/teams-user/portal-user-id.png )
51
-
52
34
## Add the Call UI controls
53
35
54
- Replace code in index.html with the following snippet. Place a call to the Teams users by specifying their ID(s).
36
+ Replace code in index.html with the following snippet. Place a call to the Teams users by specifying their < a href = " #userIds " > ID(s)</ a > .
55
37
- The text box is used to enter the Teams user IDs you are planning to call. Enter one id for a 1:1 call, or multiple for a group call
56
38
57
39
``` html
@@ -396,6 +378,24 @@ hangUpButton.addEventListener("click", async () => {
396
378
});
397
379
```
398
380
381
+ <h2 id =" userIds " >Get the Teams user IDs</h2 >
382
+
383
+ The Teams user IDs can be retrieved using Graph APIs, which is detailed in [ Graph documentation] ( /graph/api/user-get?tabs=http ) .
384
+
385
+ ``` console
386
+ https://graph.microsoft.com/v1.0/me
387
+ ```
388
+
389
+ In results get the "id" field.
390
+
391
+ ``` json
392
+ "userPrincipalName" :
" [email protected] " ,
393
+ "id" : " 31a011c2-2672-4dd0-b6f9-9334ef4999db"
394
+ ```
395
+
396
+ Or the same ID could be found in [ Azure portal] ( https://aka.ms/portal ) in Users tab:
397
+ ![ User Object ID in Azure Portal] ( ./includes/teams-user/portal-user-id.png )
398
+
399
399
## Run the code
400
400
401
401
Run the following command to bundle your application host on a local webserver:
0 commit comments