Update Client ID And Client Secret From Data Migration Tool

How to generate the seed_result.txt file via UiPath.DataMigrator.Cli.dll and update the Orchestrator configuration properly using the values generated from that?

  1. In a command prompt window, navigate to the Orchestrator installation folder C:\Program Files (x86)\UiPath\Orchestrator\Identity\Tools\DataMigrator.Cli
  2. Run the following command,
  • dotnet UiPath.DataMigrator.Cli.dll seed --destinationConnectionString "Data Source=[Data_Source];Initial Catalog=[Initial_Catalog];User ID="";Password="" --orchestratorUri "" --outputFile "c:\temp\seed_results.txt"

  1. Copy the values from the seed_results.txt file, mentioned above, to the UiPath.Orchestrator.dll.config file, as follows,
  • From the key with ClientName Orchestrator.S2S, copy the client ID to the key "IdentityServer.Integration.ClientId" and the client secret to the key "IdentityServer.Integration.ClientSecret" of the UiPath.Orchestrator.dll.config file

  • From the key with ClientName Orchestrator.OpenId, copy the client ID to the key ExternalAuth.System.OpenIdConnect.ClientId and the client secret to the key ExternalAuth.System.OpenIdConnect.ClientSecret of the UiPath.Orchestrator.dll.config file

  1. Completely restart the IIS server, not only the Orchestrator application.

If the file "seed_results.txt" is empty, the seed command has not worked. Try to remove the values form the table identity.Client, of the database.