How do I know which synchronization rule I should use to kick off a provision-on-demand via the API
shrinjay mukherjee
0
Reputation points
I would like to build an integration that can call the Provision on Demand Graph API for a given enterprise app: https://learn.microsoft.com/en-us/graph/api/synchronization-synchronizationjob-provisionondemand?view=graph-rest-1.0&tabs=http. This API endpoint requires a rule ID to be specified. The issue is, I'm not quite sure how to consistently identify the correct synchronization rule to use. Specifically:
- Is there any possibility of an application/service principal having more than 1 synchronization job? The fact that there is a list endpoint suggests that it is possible - however in the provisioning UI I can only see one synchronization job ID.
- For a given synchronization job, is there any possibility of there being more than 1 synchronization rule that supports on demand provisioning. I can see that some apps have a separate synchronization rule for inbound provisioning, but it seems most apps only have one rule for outbound provisioning. Is this always the case?
- Say I don't know which synchronization job to use, I was planning to get all synchronization rules for all synchronization jobs, and find the synchronization job and rule that supports outbound provisioning via provision on demand. This only works if there is only one job and one rule that supports outbound provisioning using on-demand provisioning. Is this a feasible approach?
Any insight?
Sign in to answer