Skip to content

Commit b685b23

Browse files
authored
Update identifiers-js.md
1 parent df09eb2 commit b685b23

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/communication-services/concepts/includes/identifiers/identifiers-js.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,18 @@ Alternatively, you can find the object ID as the `oid` claim and the tenant ID a
105105
// get the Teams user's ID from Graph APIs if only the email is known
106106
const user = await graphClient.api("/users/[email protected]").get();
107107

108-
// Get the tenant from Graph API
108+
// Get the tenantId from Graph API
109109
const org = await graphClient.api("/organization").get();
110-
const tenant = org.value[0];
110+
const tenantId = org.value[0].id;
111111

112112
//Communication Services Resource ID
113113
const resourceId = "<resource-id-guid>";
114114

115115
// create an identifier
116-
const teamsExtensionUser = { userId: user.id, tenantId: tenantId.id, resourceId: resourceId };
116+
const teamsExtensionUser = { userId: user.id, tenantId: tenantId, resourceId: resourceId };
117117

118118
// if you're not operating in the public cloud, you must also pass the right Cloud type.
119-
const gcchTeamsExtensionUser = { userId: user.id, tenantId: tenantId.id, resourceId: resourceId, cloud: "gcch" };
119+
const gcchTeamsExtensionUser = { userId: user.id, tenantId: tenantId, resourceId: resourceId, cloud: "gcch" };
120120
```
121121

122122
#### API reference

0 commit comments

Comments
 (0)