Menu

Hiding sidebar menu based on profiles

Joseph
2022-10-27
2022-12-13
  • Joseph

    Joseph - 2022-10-27

    Hi!

    Just wondering how I can hide the sidebar menu based on profiles assigned to that user?

    For instance, I want users with Configuration Management to only see "Configuration Management" menu and nothing else (Helpdesk/Incident Management/Problem Management/Change Management/Service Management/Data administration will be hidden from the sidebar navigation)

    How do I go about doing that?

    Thanks in advance

     

    Last edit: Joseph 2022-10-27
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2022-10-27

    You'd need to create a datamodel XML customization (so basically create your own extension), and redefine some of those menus to be linked to user profiles.

     
    👍
    1
    • Joseph

      Joseph - 2022-10-28

      Yes I've done so:

      Let's say I want this user profile to not be able to access the Change Management:
      I add this inside the <profile></profile>

      <group id="Change">
          <actions>
              <action id="action:read">deny</action>
              <action id="action:bulk read">deny</action>
          </actions>
      </group>                    
      

      But this only restricts access to the Change Management, it does not hide it from the sidebar, any idea how to hide the from the sidebar?

      Do you happen to know where the existing menus are defined in the files directory so I can get some idea of what to edit?

      Thanks

       

      Last edit: Joseph 2022-10-28
  • Pierre Goiffon

    Pierre Goiffon - 2022-12-13

    Hello,

    Profile rights are applied on classes, so not directly on menus.
    But some menus are displayed based on a "resource class", so that we can customize if they are displayed or not using profiles.

    Check this tutorial that should give you some more info : Delegate 'Admin tools' menus [iTop Documentation]

    The Change management menu isn't linked to a class in the default datamodel, but you can add a customization to add one !

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.