TeamworkAppSettings.ReadWrite.All
Allows the app to read and write the Teams app settings without a signed-in user.
Permission Details
Read and write Teams app settings
Allows the app to read and write the Teams app settings without a signed-in user.
ab5b445e-8f10-45f4-9c79-dd3f8062cc4e
Read and write Teams app settings
Allows the app to read and write the Teams app settings on behalf of the signed-in user.
87c556f0-2bd9-4eed-bd74-5dd8af6eaf7e
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
id |
string |
The default teamwork identifier. |
isTeamsEnabled |
Boolean |
Indicates whether Microsoft Teams is enabled for the organization. |
region |
stringNullable |
Represents the region of the organization or the tenant. The region value can be any region supported by the Teams payload. The possible values are: Americas, Europe and MiddleEast, Asia Pacific, UAE, Australia, Brazil, Canada, Switzerland, Germany, France, India, Japan, South Korea, Norway, Singapore, United Kingdom, South Africa, Sweden, Qatar, Poland, Italy, Israel, Spain, Mexico, USGov Community Cloud, USGov Community Cloud High, USGov Department of Defense, and China. |
deletedChats |
deletedChat collection |
A collection of deleted chats. |
deletedTeams |
deletedTeam collection |
The deleted team. |
teamsAppSettings |
object |
Represents tenant-wide settings for all Teams apps in the tenant. |
workforceIntegrations |
workforceIntegration collection |
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"@odata.type": "#microsoft.graph.teamwork",
"id": "String",
"isTeamsEnabled": "boolean",
"region": "String"
}
Relationships
Relationships is shown from stable Microsoft Graph v1.0 metadata.
| Relationship | Type | Description |
|---|---|---|
deletedTeams |
deletedTeam collection |
The deleted team. |
deletedChats |
deletedChat collection |
A collection of deleted chats. |
teamsAppSettings |
teamsAppSettings |
Represents tenant-wide settings for all Teams apps in the tenant. |
workforceIntegrations |
workforceIntegration collection |
Related workforceIntegrations data exposed by this resource. |
devices |
teamworkDevice collection |
The Teams devices provisioned for the tenant. |
teamTemplates |
teamTemplate collection |
The templates associated with a team. |
Graph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
| Methods |
|---|
GET
/teamwork/teamsAppSettings
|
PATCH
/teamwork/teamsAppSettings
|
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
| Methods |
|---|
GET
/teamwork/teamsAppSettings
|
PATCH
/teamwork/teamsAppSettings
|
Microsoft Graph PowerShell v1.0 commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
| Commands |
|---|
Get-MgTeamworkTeamAppSetting
/teamwork/teamsAppSettings
Get teamsAppSettings
|
Update-MgTeamworkTeamAppSetting
/teamwork/teamsAppSettings
Update teamsAppSettings
|
Microsoft Graph PowerShell beta commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
| Commands |
|---|
Get-MgBetaTeamworkTeamAppSetting
/teamwork/teamsAppSettings
Get teamsAppSettings
|
Update-MgBetaTeamworkTeamAppSetting
/teamwork/teamsAppSettings
Update teamsAppSettings
|
Code Examples
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new TeamsAppSettings
{
OdataType = "#microsoft.graph.teamsAppSettings",
AllowUserRequestsForAppAccess = true,
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Teamwork.TeamsAppSettings.PatchAsync(requestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const teamsAppSettings = {
'@odata.type': '#microsoft.graph.teamsAppSettings',
allowUserRequestsForAppAccess: 'true'
};
await client.api('/teamwork/teamsAppSettings')
.update(teamsAppSettings);
Import-Module Microsoft.Graph.Teams
$params = @{
"@odata.type" = "#microsoft.graph.teamsAppSettings"
allowUserRequestsForAppAccess = "true"
}
Update-MgTeamworkTeamAppSetting -BodyParameter $params
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.teams_app_settings import TeamsAppSettings
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = TeamsAppSettings(
odata_type = "#microsoft.graph.teamsAppSettings",
allow_user_requests_for_app_access = True,
)
result = await graph_client.teamwork.teams_app_settings.patch(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 TeamworkAppSettings.ReadWrite.All
Grant Admin Consent
Application permissions always require admin consent.