Teamwork.Migrate.All
Allows the app to create chat and channel messages, without a signed in user. The app specifies which user appears as the sender, and can backdate the message to appear as if it was sent long ago. The messages can be sent to any chat or channel in the organization.
Permission Details
Create chat and channel messages with anyone's identity and with any timestamp
Allows the app to create chat and channel messages, without a signed in user. The app specifies which user appears as the sender, and can backdate the message to appear as if it was sent long ago. The messages can be sent to any chat or channel in the organization.
dfb0dd15-61de-45b2-be36-d6a69fba3c79
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.
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
await graphClient.Teams["{team-id}"].Channels["{channel-id}"].CompleteMigration.PostAsync();
const options = {
authProvider,
};
const client = Client.init(options);
await client.api('/teams/57fb72d0-d811-46f4-8947-305e6072eaa5/channels/19:[email protected]/completeMigration')
.post();
Import-Module Microsoft.Graph.Teams
Complete-MgTeamChannelMigration -TeamId $teamId -ChannelId $channelId
# 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
await graph_client.teams.by_team_id('team-id').channels.by_channel_id('channel-id').complete_migration.post()
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 and search for Teamwork.Migrate.All
Grant Admin Consent
Application permissions always require admin consent.