TeamsAppInstallation.ReadWriteAndConsentSelfForUser
Allows a Teams app to read, install, upgrade, and uninstall itself in user accounts, and manage its permission grants for accessing those specific users' data, on behalf of the signed-in user.
In short
TeamsAppInstallation.ReadWriteAndConsentSelfForUser is a delegated permission in the Microsoft Graph API, grouped under the TeamsAppInstallation category. Allows a Teams app to read, install, upgrade, and uninstall itself in user accounts, and manage its permission grants for accessing those specific users' data, on behalf of the signed-in user. It grants read and write access to resources. This delegated permission requires admin consent.
Permission Details
Allow the Teams app to manage itself and its permission grants in user accounts
Allows a Teams app to read, install, upgrade, and uninstall itself in user accounts, and manage its permission grants for accessing those specific users' data, on behalf of the signed-in user.
7a349935-c54d-44ab-ab66-1b460d315be7
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.ReadWriteAndConsentSelfForUser
Grant Admin Consent
This delegated permission requires admin consent.
Frequently asked questions
What is the TeamsAppInstallation.ReadWriteAndConsentSelfForUser Microsoft Graph permission?
TeamsAppInstallation.ReadWriteAndConsentSelfForUser is a delegated permission in the Microsoft Graph API, grouped under the TeamsAppInstallation category. Allows a Teams app to read, install, upgrade, and uninstall itself in user accounts, and manage its permission grants for accessing those specific users' data, on behalf of the signed-in user. 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.ReadWriteAndConsentSelfForUser an application or a delegated permission?
TeamsAppInstallation.ReadWriteAndConsentSelfForUser 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.ReadWriteAndConsentSelfForUser require admin consent?
This delegated permission requires admin consent.
What is the permission ID (GUID) for TeamsAppInstallation.ReadWriteAndConsentSelfForUser?
For TeamsAppInstallation.ReadWriteAndConsentSelfForUser, the delegated (OAuth2 scope) ID is 7a349935-c54d-44ab-ab66-1b460d315be7. These are the real Microsoft Graph identifiers and can be used directly in an app registration manifest.