OTRS - Restrict the visability of buttons in the navigation bar / restrict functions of modules to selected user groups
Problem description:
Restrict the visability of buttons in the navigation bar or restrict functions of modules to selected user groups.
Solution:
Each module in OTRS is registered within the system configuration (Sysconfig). In the registration part of each module there is also an parameter which allows you to restrict functions or the visability of buttons to selected user groups.
Limit Access to a selected user group:
- First of all create the user group which should get access to the desired menu or the desired function. In our example a group is created which gets access to the "Dashboard". For all other users the access to the "Dashboard" is blocked.
- In the Admin-Area select "Groups" and create a new group called "Menue-Navbar-Dashboard".
- In the Admin-Area go to "[User <-> Groups] ". Add the users which should get access to the dashboard to the new created group.
- In the Admin-Area go to "Sysconfig" and search for the registration of the module. In our sample: Framework -> Frontend::Agent::ModuleRegistration
- Beneath the entry "NavBar =>" (see Screenshot) click on "New Group Ro".

- In the new field (see Screenshot) enter the name of the created group (Menue-Navbar-Dashboard in our example).
- Then logout an relogin. After logging in the "Dashboard" in the navigation bar is only visible to the members of the group "Menue-Navbar-Dashboard".

Registration of the standard modules:
The registration of the standard modules could be found:
For Agents:
Framework -> Frontend::Agent::ModuleRegistration
Ticket -> Frontend::Agent::ModuleRegistration
For Customers:
Framework -> Frontend::Customer::ModuleRegistration
Ticket -> Frontend::Customer::ModuleRegistration
Registration of add on modules
The registration of the add on modules could also be found in the sysconfig. For each add on module exist a configuration group in the sysconfig. For example the registration of the survey module could be found at: Survey -> Frontend::Agent::ModuleRegistration and the registration of the calendar module could be found at: Calendar -> Frontend::Agent::ModuleRegistration.
- OTRS Tipps & Tricks:
Risk disclaimer
Please be aware that any information published on otrs-treff could be inaccurate or misleading. Using the published information is at your own risk. OTRS-Treff or any author of this site is not responsible for any consequential damages.
