ESC
Type to search...

Teamwork.Migrate.All

Export JSON
Export CSV
Copy URL
Print
Application Read All Resources

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 data: April 6, 2026 at 4:06 AM UTC
Delegated Access App-Only Access

Permission Details

Application Permission

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.

Properties

Microsoft Graph v1.0 exact-category-docs

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

Microsoft Graph v1.0 exact-category-docs

JSON representation is shown from stable Microsoft Graph v1.0 metadata.

JSON representation
{
  "@odata.type": "#microsoft.graph.teamwork",
  "id": "String",
  "isTeamsEnabled": "boolean",
  "region": "String"
}

Relationships

Microsoft Graph v1.0 exact-category-docs

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

Delegated access App-only access
Exact Microsoft Learn match

Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.

Methods
POST /chats/{chat-id}/messages
POST /teams
POST /teams/{team-id}/channels
POST /teams/{team-id}/channels/{channel-id}/completeMigration
POST /teams/{team-id}/channels/{channel-id}/messages
POST /teams/{team-id}/channels/{channel-id}/messages/{message-id}/replies
POST /teams/{team-id}/completeMigration
Exact Microsoft Learn match

Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.

Methods
POST /chats/{chat-id}/completeMigration
POST /chats/{chat-id}/messages
POST /chats/{chat-id}/startMigration
POST /teams
POST /teams/{team-id}/channels
POST /teams/{team-id}/channels/{channel-id}/completeMigration
POST /teams/{team-id}/channels/{channel-id}/messages
POST /teams/{team-id}/channels/{channel-id}/messages/{message-id}/replies
POST /teams/{team-id}/channels/{channel-id}/startMigration
POST /teams/{team-id}/completeMigration
Exact Microsoft Learn PowerShell match

Microsoft Graph PowerShell v1.0 commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.

Commands
New-MgChatMessage /chats/{chat-id}/messages
Send message in a chat
New-MgChatMessage /teams/{team-id}/channels/{channel-id}/messages
Send chatMessage in a channel or a chat
New-MgTeam /teams
Create team
New-MgTeamChannel /teams/{team-id}/channels
Create channel
New-MgTeamChannelMessage /teams/{team-id}/channels/{channel-id}/messages
Send chatMessage in a channel
New-MgTeamChannelMessage /teams/{team-id}/channels/{channel-id}/messages
Send chatMessage in a channel or a chat
New-MgTeamChannelMessageReply /teams/{team-id}/channels/{channel-id}/messages/{message-id}/replies
Reply to a message in a channel
New-MgTeamChannelMessageReply /teams/{team-id}/channels/{channel-id}/messages/{message-id}/replies
Send replies to a message in a channel
Exact Microsoft Learn PowerShell match

Microsoft Graph PowerShell beta commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.

Commands
New-MgBetaChatMessage /chats/{chat-id}/messages
Send message in a chat
New-MgBetaChatMessage /teams/{team-id}/channels/{channel-id}/messages
Send chatMessage in a channel or a chat
New-MgBetaTeam /teams
Create team
New-MgBetaTeamChannel /teams/{team-id}/channels
Create channel
New-MgBetaTeamChannelMessage /teams/{team-id}/channels/{channel-id}/messages
Send chatMessage in a channel
New-MgBetaTeamChannelMessage /teams/{team-id}/channels/{channel-id}/messages
Send chatMessage in a channel or a chat
New-MgBetaTeamChannelMessageReply /teams/{team-id}/channels/{channel-id}/messages/{message-id}/replies
Send replies to a message in a channel
New-MgTeamChannelMessage /teams/{team-id}/channels/{channel-id}/messages
Send chatMessage in a channel or a chat

Code Examples

C# / .NET SDK
channel: completeMigration
// 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();
JavaScript
channel: completeMigration
const options = {
	authProvider,
};

const client = Client.init(options);

await client.api('/teams/57fb72d0-d811-46f4-8947-305e6072eaa5/channels/19:[email protected]/completeMigration')
	.post();
PowerShell
channel: completeMigration
Import-Module Microsoft.Graph.Teams

Complete-MgTeamChannelMigration -TeamId $teamId -ChannelId $channelId
Python
channel: completeMigration
# 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

1

Navigate to Azure Portal

Go to App registrations in Microsoft Entra admin center

2

Add API Permission

Select your app → API permissions → Add a permission → Microsoft Graph

3

Select Permission Type

Choose Application permissions and search for Teamwork.Migrate.All

4

Grant Admin Consent

Application permissions always require admin consent.