Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,449 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hey there,
I have setup a logic app to restart scim provisioning in our AAD environment. I have managed to successfully get the access token, parse the JSON etc. However, when it comes to the api call to restart the job, I am getting an error. The call I am making is:
https://graph.microsoft.com/beta/servicePrincipals/{serviceprincipal}/synchronization/jobs/{jobid}/restart - with a request body of:
{
"criteria": {
"resetScope": "Watermark"
}
}
I get the error below. Any help would be appreciated.
{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"date": "2023-03-10T06:25:11",
"request-id": "5455055b-6952-4597-81de-c5dd05f025fa",
"client-request-id": "5455055b-6952-4597-81de-c5dd05f025fa"
}
}
Does it work using powershell?
Import-Module Microsoft.Graph.Applications
$params = @{
Criteria = @{
ResetScope = "Watermark, Escrows, QuarantineState"
}
}
Restart-MgServicePrincipalSynchronizationJob -ServicePrincipalId $servicePrincipalId -SynchronizationJobId $synchronizationJobId -BodyParameter $params