Z: Rewrite required - Does RSA Identity Governance and Lifecycle AFX Database Connectors support Stored Procedure Output parameters?
Originally Published: 2017-06-28
Article Number
Applies To
RSA Version/Condition: All
Issue
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.
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
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.”
@ERROR_CODE=”1”
@ERROR_MESSAGE=”Account already exists.”
Resolution
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.
Related Articles
How to call a stored procedure from the Generic Database AFX Connector in RSA Identity Governance & Lifecycle 45Number of Views Procedure to open RADIUS ports on the SecurID Appliance 14Number of Views Generic REST AFX Connector does not encrypt Additional Parameters when defined as Encrypted in RSA Identity Governance & L… 99Number of Views What is the procedure for backing up and restoring the FIM database in clustered mode 19Number of Views DBSM: Error when configuring Oracle adapter: ORA-28575: unable to open RPC connection to external procedure agent 3Number of Views
Trending Articles
Downloading RSA Authentication Manager license files or RSA Software token seed records RSA Release Notes for RSA Authentication Manager 8.8 RSA Authentication Manager 8.9 Release Notes (January 2026) Download RSA SecurID Access Cloud User Event audit logs using Cloud Administration REST API CLU RSA SecurID Software Token 5.0.2 for Windows Desktop displays message after reboot due to roaming profile: No token stor…
Don't see what you're looking for?