Define menu options based on roles in UI Builder portal experience menu

Ricardo26
Tera Contributor

Hello,

 

There is one page that can be access only by users with an certain role. I configured the audience to do so in the UI Builder, but I also would like to hide the option on the menu for users that don´t have that role.

(Hide the restricted menu)

 

Ricardo26_1-1688580131006.png

 

To change the menu options, I went to the edit experience settings -> Navigation and Menus -> Advanced navigation menu settings.

I found a record at UX record page property that has a json with the menu items.

 

Ricardo26_2-1688580581592.png

Is there any way to hide the menu options?

 

Thanks,

2 REPLIES 2

Aylee Andersen
Kilo Sage

Referencing an OOB Portal Experience (Risk Portal), it looks like their might be a "condition" property you can add to your menu item. 

"condition": {
    "roles": [
        "admin",
        "ui_builder_admin",
        "name_of_your_role"
    ]
}

 Screen Shot 2023-07-05 at 1.56.31 PM.png

sushant06251
ServiceNow Employee
ServiceNow Employee

Did you find any solution to this?