TeamsTelephoneNumber.ReadWrite.All
Allows the app to read your tenant's acquired telephone number details, without a signed-in user. Acquired telephone numbers may include attributes related to assigned object, emergency location, network site, etc.
Permission Details
Read and Modify Tenant-Acquired Telephone Number Details
Allows the app to read your tenant's acquired telephone number details, without a signed-in user. Acquired telephone numbers may include attributes related to assigned object, emergency location, network site, etc.
0a42382f-155c-4eb1-9bdc-21548ccaa387
Read and Modify Tenant-Acquired Telephone Number Details
Allows the app to read and modify your tenant's acquired telephone number details on behalf of the signed-in admin user. Acquired telephone numbers may include attributes related to assigned object, emergency location, network site, etc.
424b07a8-1209-4d17-9fe4-9018a93a1024
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
edge |
object |
A container for Microsoft Edge resources. Read-only. |
exchange |
object |
A container for the Exchange admin functionality. Read-only. |
microsoft365Apps |
object |
A container for the Microsoft 365 apps admin functionality. |
people |
object |
Represents a setting to control people-related admin settings in the tenant. |
reportSettings |
object |
A container for administrative resources to manage reports. |
serviceAnnouncement |
object |
A container for service communications resources. Read-only. |
sharepoint |
object |
|
teams |
object |
A container for Teams administration functionalities, such as Teams telephone number management functionalities, user Teams configurations, and policy assignments. |
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"@odata.type": "#microsoft.graph.admin"
}
Relationships
Relationships is shown from stable Microsoft Graph v1.0 metadata.
| Relationship | Type | Description |
|---|---|---|
configurationManagement |
configurationManagement |
A container for Tenant Configuration Management (TCM) resources. Read-only. |
edge |
edge |
A container for Microsoft Edge resources. Read-only. |
exchange |
exchangeAdmin |
A container for the Exchange admin functionality. Read-only. |
microsoft365Apps |
adminMicrosoft365Apps |
A container for the Microsoft 365 apps admin functionality. |
people |
peopleAdminSettings |
Represents a setting to control people-related admin settings in the tenant. |
reportSettings |
adminReportSettings |
A container for administrative resources to manage reports. |
serviceAnnouncement |
serviceAnnouncement |
A container for service communications resources. Read-only. |
sharepointSettings |
sharepointSettings |
A container for administrative resources to manage tenant-level settings for SharePoint and OneDrive. |
teams |
teamsAdministration.teamsAdminRoot |
A container for Teams administration functionalities, such as Teams telephone number management functionalities, user Teams configurations, and policy assignments. |
Graph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph PowerShell v1.0 commands are not available from refreshed Microsoft Learn PowerShell snippets for this permission.
No deterministic PowerShell command map is available for this permission.
Browse PowerShell docsMicrosoft Graph PowerShell beta commands are not available from refreshed Microsoft Learn PowerShell snippets for this permission.
No deterministic PowerShell command map is available for this permission.
Browse PowerShell docsCode Examples
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Admin.Teams.TelephoneNumberManagement.NumberAssignments.MicrosoftGraphTeamsAdministrationAssignNumber;
using Microsoft.Graph.Beta.Models.TeamsAdministration;
var requestBody = new AssignNumberPostRequestBody
{
TelephoneNumber = "12061234567",
AssignmentTargetId = "94ec379d-30a2-4cdb-a377-75e42f7a61e5",
NumberType = NumberType.DirectRouting,
AssignmentCategory = AssignmentCategory.Primary,
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.Admin.Teams.TelephoneNumberManagement.NumberAssignments.MicrosoftGraphTeamsAdministrationAssignNumber.PostAsync(requestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const assignNumber = {
telephoneNumber: '12061234567',
assignmentTargetId: '94ec379d-30a2-4cdb-a377-75e42f7a61e5',
numberType: 'directRouting',
assignmentCategory: 'primary'
};
await client.api('/admin/teams/telephoneNumberManagement/numberAssignments/assignNumber')
.post(assignNumber);
Connect-MgGraph -Scopes "TeamsTelephoneNumber.ReadWrite.All"
Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/admin/teams/telephoneNumberManagement/numberAssignments"
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.admin.teams.telephonenumbermanagement.numberassignments.microsoft_graph_teams_administration_assign_number.assign_number_post_request_body import AssignNumberPostRequestBody
from msgraph_beta.generated.models.number_type import NumberType
from msgraph_beta.generated.models.assignment_category import AssignmentCategory
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = AssignNumberPostRequestBody(
telephone_number = "12061234567",
assignment_target_id = "94ec379d-30a2-4cdb-a377-75e42f7a61e5",
number_type = NumberType.DirectRouting,
assignment_category = AssignmentCategory.Primary,
)
await graph_client.admin.teams.telephone_number_management.number_assignments.microsoft_graph_teams_administration_assign_number.post(request_body)
App Registration
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Application permissions or delegated permissions and search for TeamsTelephoneNumber.ReadWrite.All
Grant Admin Consent
Application permissions always require admin consent.