book
Article ID: KB0091879
calendar_today
Updated On:
Description
Resolution:
1. If you are adding a new menu item to the CIM UI, this needs to be specified in the $MQ_HOME/config/security/allmenu.xml. For example:
<menuitem class="security" id="catalogmenu_ARAMDM">
<displayname>ARAMDM</displayname>
<basename>ARAMDM</basename>
<url>GIClient?jsxapppath=JSXAPPS/ARAMDM</url>
</menuitem>
2. Now if you want this new menu item to be hidden for particular role, then use function id = 1001 and make an entry in the FUNCTION table as follows:
INSERT INTO FUNCTION (ID, NAME, DESCRIPTION, FUNCTION ) VALUES ( 1001, 'catalogmenu_ARAMDM', 'catalogmenu_ARAMDM', 'catalogmenu_ARAMDM');
3. To hide it to a specific role, create an entry in role2func table.
insert into role2funcmap (id, roleid, funcid, name, priority) values (mq_sequence_1.nextval, <role-id>, 1001, '<Role-Name>', 0)
Notes:
FUNCTION should match with entry in allmenu.xml.
Clear the cache or restart the server once the above changes are done to them into effect.
Issue/Introduction
How to hide custom menu items in the CIM left menu bar based on User role?