Menu

Access to DataModel Menu by other profiles

2025-07-18
2025-07-23
  • Cristian Ozan

    Cristian Ozan - 2025-07-18

    "Is it possible to create a profile, for example, 'Data Model Viewer', via an extension and allow a user with that profile to view the data model? I have already tried this, but no user who is not an Admin has access to that menu."

    <group id="DataModelAccess" _delta="define"> <comment>Access to the Data Model menu</comment> <classes> <class id="ResourceSystemMenu"> <class id="ResourceAdminMenu"> <class id="ResourceRunQueriesMenu"> </class></class></class></classes> </group>

    <profile id="1008" _delta="define">
    <name>Data Model Viewer</name>
    <description>Allows access to the Data Model menu under Admin Tools</description>
    <groups>
    <group id="DataModelAccess">
    <actions>
    <action id="UR_ACTION_MODIFY">
    </action></actions>
    </group>
    </groups>
    </profile>

      Thanks
    
      Cristian
    
     
    • Vincent @ Combodo

      Hi Christian,
      Your syntax is a bit wrong, inside the profile declaration, the access rights must be given this way:

                <group id="DataModelAccess">
                  <actions>
                    <action id="action:read">allow</action>
                    <action id="action:bulk read">allow</action>
                    <action id="action:write">allow</action>
                  </actions>
                </group>
      

      I also hope that you did not provide the full XML, because "group" must be declared under "groups" and "profile" under "profiles", booth collections being under "user_rights" tag

       
      • Cristian Ozan

        Cristian Ozan - 2025-07-23

        Excellent!,

        My mistake!, now its work!.

        Thanks for de help. @Vicent

         
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2025-07-19

    Hqve you checked the permissions of the menu item itself?

     
  • Cristian Ozan

    Cristian Ozan - 2025-07-21

    I saw the documentation in this url https://www.itophub.io/wiki/page?id=latest:customization:xml_reference#menus and dont see the posiblity to define permitions..

    This is my configuration actually.

    <rank>11</rank> <parent>ConfigManagement</parent> <url>$pages/schema.php</url> <enable_permission>UR_ALLOWED_YES</enable_permission> <enable_class>ResourceRunQueriesMenu</enable_class> <enable_action>UR_ACTION_MODIFY</enable_action>

    The only way i found is comment the line 26 of the file schema.php

    //ApplicationMenu::CheckMenuIdEnabled('DataModelMenu');

     

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.