How to achieve role based access of header menus(chrome_menu) in sys_ux_page_property?

varunsh
Tera Contributor

Only the users that have a particular role should be able to see this header menu. Therefore, I placed the following json in context_menu of my page. But it is not working. It is visible to those users also who doesn't have this role. Please advise:

[

  {
       "value":{
       "label":{
       "translatable":true, 
       "message":"Incident"
           },
"condition": {
             "roles": ["global_admin"]
           },    
             "type":"route",
             "type":"external",
             "rightIcon":"open-link-fill",
             "value":{"href": "/sam?id=sc_cat_item&sys_id=d523835a87898e10306175d8dabb3559"}
          }
    
      }  
 ]
3 REPLIES 3

Dibyaratnam
Tera Sage

Header menu are visible via chrome_header UX property where you can add conditions

@Dibyaratnam  Actually we want to understand that how the roles can be added to chrome_menu json in sys_ux_page_property

Dibyaratnam
Tera Sage

I am not aware of any such property named chrome_menu. didnt find any reference from PDI as well. Can you give any example that's there with you as of now.