...
If you are calling the CLI from a Powershell script, The end result is that you will be calling the CLI something like this (example in Powershell):
Code Block | ||||
---|---|---|---|---|
| ||||
$clientId = 'TestUserSynchronization'
$clientSecret = 'MIIEp....<the rest of your private key>'
$cxoUrl = 'https://cxo-dev-t03.cxo-dev.local'
$idpUrl = 'https://cxo-dev-t03.cxo-dev.local/idp'
$applicationFile = '.\applications.json'
$inputFile = '.\input.json'
$exe = './CXO.User.Synchronization.Client.CLI.exe'
& $exe "--cxoUrl" $cxoUrl "--idpUrl" $idpUrl "-c" $clientId "-p" $clientSecret "-i" $inputFile "-a" $applicationFile | Write-Host |
This code-snippet would will automatically synchronize the applications and users from the two input json files.