Skip to content

Commit 366ff99

Browse files
authored
Update identifiers-rest.md
1 parent 5af6e83 commit 366ff99

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

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

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,63 @@ The `MicrosoftTeamsAppIdentifierModel` represents a bot of the Teams Voice appli
171171

172172
[MicrosoftTeamsAppIdentifierModel](https://github.com/Azure/azure-rest-api-specs/blob/ea28180c6ce9027df36568307f235868d581144c/specification/communication/data-plane/Common/stable/2023-11-15/common.json#L165C6-L165C38)
173173

174+
### Teams Extension user
175+
176+
The `TeamsExtensionUserIdentifier` interface represents a Teams user enabled for Teams Phone Extensibility. A `TeamsExtensionUserIdentifier` requires the Microsoft Entra user object ID of the Teams user, the Microsoft Entra tenant ID where the user resides and the Azure Communication Services resource ID. You can retrieve the Microsoft Entra user object ID via the [Microsoft Graph REST API /users](/graph/api/user-get) endpoint from the `id` property in the response and the Microsoft Entra tenant ID via the [Microsoft Graph REST API /organization](/graph/api/organization-get) endpoint from the `id` property in the response. For more information about working with Microsoft Graph, see [Graph Explorer](https://developer.microsoft.com/en-us/graph/graph-explorer?request=users%2F%7Buser-mail%7D&method=GET&version=v1.0&GraphUrl=https://graph.microsoft.com) and look into the [Graph SDK](/graph/sdks/sdks-overview).
177+
Alternatively, you can find the object ID as the `oid` claim and the tenant ID as the `tid` claim in an [Microsoft Entra token](/entra/identity-platform/id-token-claims-reference#payload-claims) or [Microsoft Entra access token](/entra/identity-platform/access-token-claims-reference#payload-claims) after your user signed in and acquired a token.
178+
179+
#### Basic usage
180+
181+
```json
182+
// request
183+
{
184+
"teamsExtensionUser": {
185+
"userId": "00aa00aa-bb11-cc22-dd33-44ee44ee44ee",
186+
"tenantId": "d4f5a8c3-2c49-4b9e-a5c6-3c85e80a7f4d",
187+
"resourceId": "f7e1e3c6-3a1d-4415-8b7d-9e1d4bda2d45"
188+
}
189+
}
190+
191+
// response
192+
{
193+
"kind": "teamsExtensionUser",
194+
"rawId": "8:orgid:f7e1e3c6-3a1d-4415-8b7d-9e1d4bda2d45_d4f5a8c3-2c49-4b9e-a5c6-3c85e80a7f4d_00aa00aa-bb11-cc22-dd33-44ee44ee44ee",
195+
"teamsExtensionUser": {
196+
"userId": "00aa00aa-bb11-cc22-dd33-44ee44ee44ee",
197+
"tenantId": "d4f5a8c3-2c49-4b9e-a5c6-3c85e80a7f4d",
198+
"resourceId": "f7e1e3c6-3a1d-4415-8b7d-9e1d4bda2d45"
199+
}
200+
}
201+
202+
203+
// if you're not operating in the public cloud, you must also pass the right Cloud type in a request
204+
{
205+
"microsoftTeamsUser": {
206+
"userId": "00aa00aa-bb11-cc22-dd33-44ee44ee44ee",
207+
"tenantId": "d4f5a8c3-2c49-4b9e-a5c6-3c85e80a7f4d",
208+
"resourceId": "f7e1e3c6-3a1d-4415-8b7d-9e1d4bda2d45",
209+
"cloud": "gcch"
210+
}
211+
}
212+
213+
// response
214+
{
215+
"kind": "teamsExtensionUser",
216+
"rawId": "8:orgid:f7e1e3c6-3a1d-4415-8b7d-9e1d4bda2d45_d4f5a8c3-2c49-4b9e-a5c6-3c85e80a7f4d_00aa00aa-bb11-cc22-dd33-44ee44ee44ee",
217+
"teamsExtensionUser": {
218+
"userId": "00aa00aa-bb11-cc22-dd33-44ee44ee44ee",
219+
"tenantId": "d4f5a8c3-2c49-4b9e-a5c6-3c85e80a7f4d",
220+
"resourceId": "f7e1e3c6-3a1d-4415-8b7d-9e1d4bda2d45",
221+
"cloud": "gcch"
222+
}
223+
}
224+
```
225+
226+
#### API reference
227+
228+
[MicrosoftTeamsUserIdentifierModel](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/communication/data-plane/Common/stable/2025-06-30/common.json#L195)
229+
230+
174231
### Unknown
175232

176233
If a new identifier is introduced in a service, it downgrades to the `CommunicationIdentifierModel` if you are on an old API version.

0 commit comments

Comments
 (0)