Remove menu items for specific persons

Which IIQ version are you inquiring about?

Version 8.4

Please share any images or screenshots, if relevant.

undefined

Share all details related to your problem, including any error messages you may have received.

Hello,

We want to remove “Preferences” menu item for nearly all users, we only want to be visible for people in a specific workgroup and manageres (but we can arrange managers to the same group)

Do you have any idea, how can we manage this?

I don’t think that is possible to show this only for specific user
but you can modify tabs based on this setting for all users

and you can modify the option the list of users to be visible in Forwarding User

I believe if you want to hide the link the easiest way would be to make a very simple plugin which would remove this link via jquery

3 Likes

Thanks for the answers. We will go with the plugin with jquery. Do you have any sample or training how to create plugin for frontend modification with jquery?

$(document).ready(function() {
    $('ul.dropdown-menu > li > a[href="/identityiq/dashboard/identityPreferences.jsf"]').parent().hide();
});

image

I used browser developer option(press F12) to execute above code. You can write a logic to make a Rest call and fetch the current login user and based on that you can hide the Preferences button.

If the requirement is hiding the preferences button then above implementation will work.

Otherwise If user already bookmarked the preferences URL, then you may need to write some logic to handle or hide the entire forwarding block in preferences page. (like below details)

image

1 Like

Hi @lweisz
Regrading your question:
“Do you have any sample or training how to create plugin for frontend modification with jquery?”

You can use these links, they are straightforward and easy, also lemme know if you need any help I can help in that as well

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.