Menu

Modify or create profile

Damien
2025-01-31
2025-02-11
  • Damien

    Damien - 2025-01-31

    Hi,

    I have installed TeemIP to manage all my Subnet.
    I would like to delegate the subnet for different user, but I don't want that those user can create IP scope.
    I create a user with Hostmaster profile, but he can create ip scope.

    I would like to modify Hostmaster profile with button modify, but I can't ticked to No ip scope.

    I would like to create a new profile, but I didn't find.

    Is there a way to create/modify a profile ?

    thanks

     
  • Xtophe38

    Xtophe38 - 2025-02-04

    Hello,

    Yes, you can modify or create profiles... but not through the UI. You'll need to create a small extension where you'll define your new profiles or alter the existing ones. Here are a few links that will help you:

    • General overview on iTop Customization
    • Presentation of the XML dataomdel
    • Focus on <user_rights>. <groups> will help you to define set of classes with the granularity that you want. <profiles> is the place where you'll define your new profiles.</profiles></groups></user_rights>

    And of course, you may use as examples what is done in the different datamodel.xxx.xml files of TeemIp extensions.

    If you don't want to create your own extension, you can still modify these TeemIp datamodel.xxx.xml files.

    With the hope that helps.

     
  • Damien

    Damien - 2025-02-11

    Hi,

    Thanks you for your answer. I have find the correct file. I modified it. But in my dream, I would like that my user can't create IPV4block only. but if I disable the line, user can't create any IP object (block, subnet, address). Is there a more granular file or system to forbidden creating only IPv4Block ?

     
  • Xtophe38

    Xtophe38 - 2025-02-11

    Hi,

    You'll need to play with groups:

    • Create a specific group with all IP objects by the blocks and give the r/w permission on this group to the profiles you consider
    • Or remove the blocks from the existing group, create a new one with blocks only and add it qhere required.

    Note: Doing this through an extension will be useful for your future upgrades of the application. Modifying files directly will require you do redo the job at each upgrade.

     

Log in to post a comment.

MongoDB Logo MongoDB