One Identity Manager 9.3.1 - Execute SQL query on Native Database Connector target database

Hi Team,

We are using One Identity Manager 9.3.1 and have a custom target system connected through the Native Database Connector (MS SQL Server).

As part of provisioning, I need to run a custom SQL query against the target system database (not the One Identity database), retrieve values such as Device ID and Port Number, and use those values to update the related UNSAccountB account.

I tried using Predefined SQL and IStatementRunner.SqlExecute(), but those appear to execute against the One Identity database.

What is the recommended approach to:

  • Execute a custom SQL query on the Native Database Connector target database?
  • Use the existing Native Database Connector connection?
  • Retrieve the query result and use it within a process or script?

Any guidance or examples would be greatly appreciated.

Thanks!