This article describes REST API for Teams Phone extensibility.
Create assignment
Create an assignment to give a Teams user or Teams resource account access to the Communication Services resource.
PUT {endpoint}/access/teamsExtension/tenants/{tenantId}/assignments/{objectId}?api-version=2025-06-30
URI parameters
| Name |
In |
Required |
Type |
Description |
objectId |
path |
true |
string |
Object ID of the principal, that is, the user ID or resource account ID. |
tenantId |
path |
true |
string |
Tenant ID of the tenant that the principal belongs to. |
api-version |
query |
true |
string |
Version of API to invoke. |
Request body
Responses
Get assignment
Get the assignment for a resource access from a Teams user or Teams resource account.
GET {endpoint}/access/teamsExtension/assignments/{objectId}?api-version=2025-06-30
URI parameters
| Name |
In |
Required |
Type |
Description |
objectId |
path |
true |
string |
Object ID of the principal, that is, the user ID or resource account ID. |
Responses
Delete assignment
Delete the assignment to remove resource access from a Teams user or Teams resource account.
DELETE {endpoint}/access/teamsExtension/assignments/{objectId}?api-version=2025-06-30
URI parameters
| Name |
In |
Required |
Type |
Description |
objectId |
path |
true |
string |
Object ID of the principal, that is, the user ID or resource account ID. |
Responses
Definitions
CommunicationError
| Name |
Type |
Description |
code |
string |
The error code. |
details |
CommunicationError[] |
Further details about specific errors that led to this error. |
innererror |
CommunicationError |
The inner error if any. |
message |
string |
The error message. |
target |
string |
The error target. |
CommunicationErrorResponse
TeamsExtensionAssignmentCreateOrUpdateRequest
| Name |
Type |
Description |
principalType |
string |
Type of the principal accessing the resource, either "user" or "teamsResourceAccount". |
clientIds |
string[] |
List of IDs for the applications through which a "user" principal can access the resource. |
TeamsExtensionAssignmentResponse
| Name |
Type |
Description |
objectId |
string |
Object ID of the assignment's principal. |
tenantId |
string |
Tenant ID. |
principalType |
string |
Type of the principal accessing the resource, either "user" or "teamsResourceAccount". |
clientIds |
string[] |
List of IDs for the applications through which a "user" principal can access the resource. |
Related articles