Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Namespace: microsoft.graph
Important
APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
Get a sharePointMigrationTask that was previously created for a regular site, using the source site URL. The returned sharePointMigrationTask object includes the source and target site URLs, migration status, optional timestamps (startedDateTime and finishedDateTime), and error details about issues during processing.
Permissions
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
| Permission type | Least privileged permissions | Higher privileged permissions |
|---|---|---|
| Delegated (work or school account) | SharePointCrossTenantMigration.Read.All | Not available. |
| Delegated (personal Microsoft account) | Not supported. | Not supported. |
| Application | SharePointCrossTenantMigration.Read.All | Not available. |
HTTP request
GET /solutions/sharePoint/migrations/crossOrganizationMigrationTasks/getBySourceSiteUrl(sourceSiteUrl='{sourceSiteUrl}')
Function parameters
In the request URL, provide the following query parameters with values.
| Parameter | Type | Description |
|---|---|---|
| sourceSiteUrl | String | Source site URL. |
Optional query parameters
This method supports the $select OData query parameter to help customize the response. You can use $select to choose specific properties such as id, status, or startedDateTime. For general information, see OData query parameters.
Request headers
| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Request body
Don't supply a request body for this method.
Response
If successful, this function returns a 200 OK response code and a sharePointMigrationTask in the response body.
Examples
Request
The following example shows a request.
GET https://graph.microsoft.com/beta/solutions/sharePoint/migrations/crossOrganizationMigrationTasks/getBySourceSiteUrl(sourceSiteUrl='https://contoso.sharepoint.com/sites/IT')
Response
The following example shows the response.
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": "3ed6d46d-13a3-4995-b6ea-a74a20b1fac0",
"status": "completed",
"startedDateTime": "2025-7-18T09:08:04.451Z",
"lastUpdatedDateTime": "2025-7-18T09:13:46.028Z",
"finishedDateTime": "2025-7-18T09:13:46.028Z",
"parameters": {
"@odata.type": "#microsoft.graph.sharePointSiteMigrationTaskParameters",
"targetOrganizationId": "3ef4e46d-13a3-4895-b6ea-a74a20hu728h",
"targetOrganizationHost": "https://fabrico-my.sharepoint.com",
"sourceSiteUrl": "https://contoso.sharepoint.com/sites/IT",
"targetSiteUrl": "https://fabrico.sharepoint.com/sites/IT"
}
}