Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
breakoutModewide
languagepowershell
$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$appsFile = '.\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 $appsFile | Write-Host

This code-snippet would will automatically synchronize the applications and users from the two input json files.