Get the status of an educationSynchronizationProfile

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 the status of a specific school data synchronization profile in the tenant. The response will indicate the status of the sync.

Permissions

One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) EduAdministration.Read, EduAdministration.ReadWrite
Delegated (personal Microsoft account Not supported.
Application EduAdministration.Read.All, EduAdministration.ReadWrite.All

HTTP request

GET /education/synchronizationProfiles/{id}/profileStatus

Request headers

Name Type Description
Authorization string Bearer {token}. Required.

Request body

Do not supply a request body for this method.

Response

If successful, this method returns a 200 OK response code and an educationsynchronizationprofilestatus object in the response body.

Example

Request

The following is an example of the request.

GET https://graph.microsoft.com/beta/education/synchronizationProfiles/{id}/profileStatus
Response

The following is an example of the response.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-type: application/json

{
    "@odata.context": "https://graph.microsoft.com/beta/$metadata#education/synchronizationProfiles/{id}/profileStatus/$entity",
    "id": "86904b1e-c7d0-4ead-b13a-98f11fc400ee",
    "status": "inProgress",
    "lastSynchronizationDateTime": "2021-07-13T20:55:17.6475128Z",
    "lastActivityDateTime": "2021-07-13T20:55:17.6475128Z",
    "errorCount": 0,
    "statusMessage": "Processed 0 in the last hour.\r\nUpdated 0 in the last hour."
}