TeamsAppInstallation.ReadWriteAndConsentForUser
Allows the app to read, install, upgrade, and uninstall Teams apps in user accounts, on behalf of the signed-in user. Gives the ability to manage permission grants for accessing those specific users' data.
In short
TeamsAppInstallation.ReadWriteAndConsentForUser is a delegated permission in the Microsoft Graph API, grouped under the TeamsAppInstallation category. Allows the app to read, install, upgrade, and uninstall Teams apps in user accounts, on behalf of the signed-in user. Gives the ability to manage permission grants for accessing those specific users' data. It grants read and write access to resources. This delegated permission requires admin consent.
Permission Details
Manage installation and permission grants of Teams apps in users' personal scope
Allows the app to read, install, upgrade, and uninstall Teams apps in user accounts, on behalf of the signed-in user. Gives the ability to manage permission grants for accessing those specific users' data.
2da62c49-dfbd-40df-ba16-fef3529d391c
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
consentedPermissionSet |
teamsAppPermissionSet |
The set of resource-specific permissions consented to while installing or upgrading the teamsApp. |
id |
string |
A unique ID (not the Teams app ID). |
teamsApp |
object |
The app that is installed. |
teamsAppDefinition |
object |
The details of this version of the app. |
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"consentedPermissionSet": "#microsoft.graph.teamsAppPermissionSet",
"id": "string"
}
Relationships
Relationships is shown from stable Microsoft Graph v1.0 metadata.
| Relationship | Type | Description |
|---|---|---|
teamsApp |
teamsApp |
The app that is installed. |
teamsAppDefinition |
teamsAppDefinition |
The details of this version of the app. |
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 mapped directly from refreshed Microsoft Learn PowerShell snippets.
Microsoft Graph PowerShell beta commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Code Examples
// Code snippets are only available for the latest version. Current version is 5.x
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Users["{user-id}"].Teamwork.InstalledApps["{userScopeTeamsAppInstallation-id}"].GetAsync();
const options = {
authProvider,
};
const client = Client.init(options);
let userScopeTeamsAppInstallation = await client.api('/users/5b649834-7412-4cce-9e69-176e95a394f5/teamwork/installedApps/NWI2NDk4MzQtNzQxMi00Y2NlLTllNjktMTc2ZTk1YTM5NGY1IyNhNmI2MzM2NS0zMWE0LTRmNDMtOTJlYy03MTBiNzE1NTdhZjk')
.get();
Import-Module Microsoft.Graph.Teams
Get-MgUserTeamworkInstalledApp -UserId $userId -UserScopeTeamsAppInstallationId $userScopeTeamsAppInstallationId
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
result = await graph_client.users.by_user_id('user-id').teamwork.installed_apps.by_user_scope_teams_app_installation_id('userScopeTeamsAppInstallation-id').get()
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 Delegated permissions and search for TeamsAppInstallation.ReadWriteAndConsentForUser
Grant Admin Consent
This delegated permission requires admin consent.
Frequently asked questions
What is the TeamsAppInstallation.ReadWriteAndConsentForUser Microsoft Graph permission?
TeamsAppInstallation.ReadWriteAndConsentForUser is a delegated permission in the Microsoft Graph API, grouped under the TeamsAppInstallation category. Allows the app to read, install, upgrade, and uninstall Teams apps in user accounts, on behalf of the signed-in user. Gives the ability to manage permission grants for accessing those specific users' data. It grants read and write access to resources. This delegated permission requires admin consent. It is mapped to the Microsoft Graph teamsappinstallation resource type. 12 documented Microsoft Graph REST methods require it. 8 Microsoft Graph PowerShell commands are documented for it.
Is TeamsAppInstallation.ReadWriteAndConsentForUser an application or a delegated permission?
TeamsAppInstallation.ReadWriteAndConsentForUser is a delegated permission only. It grants access on behalf of a signed-in user and cannot be used for app-only access.
Does TeamsAppInstallation.ReadWriteAndConsentForUser require admin consent?
This delegated permission requires admin consent.
What is the permission ID (GUID) for TeamsAppInstallation.ReadWriteAndConsentForUser?
For TeamsAppInstallation.ReadWriteAndConsentForUser, the delegated (OAuth2 scope) ID is 2da62c49-dfbd-40df-ba16-fef3529d391c. These are the real Microsoft Graph identifiers and can be used directly in an app registration manifest.