Having issues with Restart synchronizationJob for a Salesforce Provisiong

Chris Csanyi 41 Reputation points
2022-04-19T05:34:50.303+00:00

@Anonymous or @AmanpreetSingh-MSFT you have helped me or posted about the Restart synchronizationJob in the past and it has been working fine for the past few months. Today I am just having issues where it does not want to clear itself after I run the command. These are still the correct instructions? https://learn.microsoft.com/en-us/answers/questions/25576/salesforce-provisioning-reset-does-not-clear-past.html

Has anything changed recently that I need to look at in the API call? After I run the /Restart call can I confirm anything? Normally after the call the last person that was breaking would work because I updated the username so that the new user could get created. Using the On Demand Provisioning right after could that cause an issue?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,100 questions
0 comments No comments
{count} votes

Accepted answer
  1. Danny Zollner 9,496 Reputation points Microsoft Employee
    2022-04-19T16:30:01.88+00:00

    Nothing has changed with the API that I am aware of. Are you sure you're including the body like this?

    POST https://graph.microsoft.com/beta/servicePrincipals/{id}/synchronization/jobs/{jobId}/restart
    Authorization: Bearer <token>
    Content-type: application/json

    {
    "criteria": {
    "resetScope": "Full"
    }
    }

    Also, after restarting you should probably hold off on using provision on demand, let the restarted job run without any interference. I can't think of any specific things that could go wrong here, but it seems like an unnecessary action on your part in any case since one would expect that either your POD action happened before the restart w/ full resetScope was processed (making it ineffective), or it would take place after (meaning the user was already reprocessed with the same rules one would expect the POD attempt to apply).


1 additional answer

Sort by: Most helpful
  1. Chris Csanyi 41 Reputation points
    2022-04-19T17:46:54.773+00:00

    @Anonymous so thanks for the suggestion to just wait. It seems for sure like the Provisioning on Demand does not work right away anymore after a restart or again how I was testing last night just was not working. I was getting a little nervous that something had changed and i was going to have some issues. Thanks again for the fast response on this with the idea to slow down!

    0 comments No comments