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
------------------------------