Define menu options based on roles in UI Builder portal experience menu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2023 11:11 AM
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)
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.
Is there any way to hide the menu options?
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2023 12:58 PM
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"
]
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 08:23 AM
Did you find any solution to this?