IBM Support

IBM Cognos Analytics User Delegation - Changing the CASE of the input variable

Question & Answer


Question

When using the datasource User Delegation feature my authentication source supplies Cognos Analytics with a user variable in a specific case (UPPER or lower). My database requires the opposite case so it fails to recognize the user being sent. How can I change the case of the User being supplied within Cognos Analytics so that I don't have to change my authentication source or database target?

Answer

User Delegation uses a macro to pass the appropriate user information to the database therefore you can use additional macros to compliment it.

If you wish to CAST the value returned from your authentication source to lowercase or uppercase you can use the following syntax in your JDBC URL.

hive.server2.proxy.user=#tolower($account.defaultName)#
hive.server2.proxy.user=#toupper($account.defaultName)#

Note:
To see the list of available macros and test their affects on the User Session Parameter, Framework Manager can be employed, if available. Simply create a calculation and create an Expression Definition using the parameters and macros from the Parameters tab.

[{"Product":{"code":"SSTSF6","label":"IBM Cognos Analytics"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Administration and Configuration v11x","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.0.10;11.0.9;11.0.8;11.0.7","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
15 June 2018

UID

swg22016688