IBM Support

Parameterized URL to perform login and open Dashboard or Report

Troubleshooting


Problem

How do you get a URL to open a dashboard and also provide credentials so there is no logon prompt.

Resolving The Problem

This can only be done in Cognos Analytics 11.0.6 and above. In earlier versions the users will have to provide credentials through a login prompt. The URL would need to use the following protocol:

http(s)://WEBSERVERNAME/ALIAS/bi/v1/disp?CAM_action=logonAs&CAMNamespace=NAMESPACEID&CAMUsername=USERID&CAMPassword=PASSWORD&m_redirect=/ALIAS/bi/?pathRef=.public_folders%2FSamples%2FReports%2FCustomer+claim+analysis&format=HTML&prompt=true&action=run

To alter this URL for a specific environment, replace WEBSERVERNAME, ALIAS, NAMESPACEID, USERID, PASSWORD with the values that are correct for the environment, and replace the pathRef with the one from the share URL for the dashboard.

Please be aware that this URL exposes a Cognos user's userid and password in plain text.

In Cognos Analytics 11.0.x you must add the advanced parameters that you are passing in the url using the following steps:

1. Use the technote below to navigate to the ConfigSetter webpage.
    http://www-01.ibm.com/support/docview.wss?uid=swg22009180

2. Log into Cognos as a system administrator in a different tab.

3. On the ConfigSetter page add the parameter below and press submit.
    Name: Glass.urlLoginParameters
    Value: CAMNamespace,CAMUsername,CAMPassword
 

In Cognos Analytics 11.1.x these advanced parameters can now be added in the portal:

1. Click Manage > Configuration > System, and select Advanced Settings.
2. In the key field type: Glass.urlLoginParameters
3. In the value field type: CAMNamespace,CAMUsername,CAMPassword
4. Click Apply

 
Use the URL with the following protocol:

http://WEBSERVERNAME/ALIAS/bi/?pathRef=.public_folders%2FSamples%2FReports%2FActive+reports%2FCustomer+claim+analysis&CAM_action=logonAs&format=HTML&Download=false&p_Glass.urlLogonParameters=CAMNamespace,CAMUsername,CAMPassword&CAMNamespace=NAMESPACEID&CAMUsername=USERID&CAMPassword=PASSWORD

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

Document Information

Modified date:
16 January 2020

UID

swg22000855