Z: Rewrite required - Does RSA Identity Governance and Lifecycle AFX Database Connectors support Stored Procedure Output parameters?
2 years ago
Originally Published: 2017-06-28
Article Number
000058989
Applies To
RSA Product Set: RSA Identity Governance and Lifecycle
RSA Version/Condition: All
Issue
those errors you get when using stored procedure output parameters in the AFX DB connector

Some customers use Stored Procedures to perform “Add User”, “Update user”, “Enabled User” and others action to manage users/accounts via AFX Database Connector Capability's Command Code. 

AFX DB Connector is not able to execute Stored Procedures with Output parameters.
AFX DB Connector is not able to capture the Store Procedure return error code and return error message.
 
For example:
 
“Add User” Stored Procedure inserts a record into the SQL table by using input parameters from Stored Procedure.
Once the stored procedure execution is completed, the Stored Procedure will return error code and error message back to stored procedure output parameters.
 
Stored Procedure syntax: sp_IAM_USERS(<ACTION>,<EmployeeID>,<Username>,<@APP_CODE>,<@ERROR_CODE>,<@ERROR_MESSAGE>)
Input parameters:  <Action>,<EmployeeID>, <Username>
Output parameters: @ERROR_CODE,@ERROR_MESSAGE,@APP_CODE
 
Call the DB2 stored procedure with parameters:
call sp_IAM_USERS(“USERADD”,”01091001”,”jataya”,@APP_CODE,@ERROR_CODE,@ERROR_MESSAGE)
 
If the employeeID “01091001”  already exists in the SQL table, then calling sp_IAM_USERS will return result:
@APP_CODE=”APP1”
@ERROR_CODE=”1”
@ERROR_MESSAGE=”Account already exists.”
 
Resolution
RSA Identity Governance and Lifecycle AFX Database Connectors does not support Stored Procedure Output parameters

The workaround (as documented on page 36 of MySQL Application Guide) is to create AFX output parameter which will be used to store the value returned by the Stored Procedure.
https://community.rsa.com/docs/DOC-62493
However, this appears to be only possible for capabilities that has "Output" parameters e.g. "Create An Account" capability.

A Request For Enhancement (ACM-75945) has been raised to accommodate this request.