Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 


#Product
#Analytics
#CognosAnalytics
#Analyticstools
#TechXchange Partner
#TechXchange Session
#TechXchange Presenter
#AI
 View Only
  • 1.  Samples tab on Content Welcome Page

    Posted 02/12/24 04:28 AM

    Hello,

    We are working with 11.2.4 .

    After importing the IBM samples, users have a new tab (Samples) in their Content View page but in our company samples are placed in a secured folder (granted to those who are intended to) so users without the grants are getting a "empty tab" with some IBM advertise.

    We would like to get rid of this tab or better configurate it only for the roles having the actual grant.

    I didn't find anything in the custom roles.

    Thank you for any help.



    ------------------------------
    German Rodriguez
    ------------------------------


  • 2.  RE: Samples tab on Content Welcome Page

    Posted 02/12/24 06:22 AM

    There are a couple of ways of doing this. Cognos 12 introduces a better way which I'll get into.

    The first way is to use UI profiles. 

    First create a role that will contain all of the users who do not have access to the samples folder.

    In the properties the samples tab is located under Content\Collections\Navigator

    Once it's set, users with that UI profile will not be able to see the Samples tab:



    Important note! UI profiles are NOT additive. The one with the highest priority will take precedence, so you'll need a separate UI profile for every variation.

    Posting this while I prep the next answer...



    ------------------------------
    Paul Mendelson
    ------------------------------



  • 3.  RE: Samples tab on Content Welcome Page

    Posted 02/12/24 06:52 AM

    The other way of doing this is to use an extension. 

    You can write a simple extension to remove the tab. In 11.2.4 this will affect all users.

    {
    	"name": "hideSamples",
    	"schemaVersion": "1.0",
    	"extensions": [{
    		"perspective":"content",
    		"features": [{
    			"id": "hideSamplesTab",
    			"excludeItems": ["com.ibm.bi.content.navigator.samples"]
    		}]
    	}]
    }

    Now I mentioned before that Cognos 12 introduces a better way of handling requirements like this. This is where it is. In Cognos 12 we can now use the "environment" object:

    {
    	"name": "hideSamples",
    	"schemaVersion": "1.0",
    	"extensions": [{
    		"perspective":"content",
    		"features": [{
    			"id": "hideSamplesTab",
          "environment": {"groupsAndRoles": [":Consumers"]},
    			"excludeItems": ["com.ibm.bi.content.navigator.samples"]
    		}]
    	}]
    }

    In the above example I'm excluding the samples tab for any user part of the Consumers tab. If you want to show it only for a specific group we could exclude it for everyone, then add it back in for that specific group.

    {
    	"name": "hideSamples",
    	"schemaVersion": "1.0",
    	"extensions": [{
    		"perspective":"content",
    		"features": [{
    			"id": "hideSamplesTab",
          "environment": {"groupsAndRoles": [":Everyone"]},
    			"excludeItems": ["com.ibm.bi.content.navigator.samples"]
    		},
        
        {
    			"id": "hideSamplesTab",
          "environment": {"groupsAndRoles": [":SamplesUsers"]},
          "collectionItems":[{
    				"containerId": "com.ibm.bi.content.navigator",
    				"id": "com.ibm.bi.content.navigator.samples",
    				"name": "samples",
    				"label": "%samples",
    				"weight": 100,
    				"module": "ca-content/bridge/content/SamplesTabView",
    				"properties": {
    					"toolbar": [
    						"filter",
    						"sort",
    						"refresh",
    						"settings"
    					],
    					"listOptions": true,
    					"getUrlCallback": {
    						"callbackClass": "ca-content/bridge/glass/ContentPageCallbacks",
    						"callbackFunction": "getSamplesFolderUrl"
    					}
    				}
    			}]
      }]
    	}]
    }

    Hope this helps!



    ------------------------------
    Paul Mendelson
    ------------------------------