Hide a module in the navigation pane

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2016 06:43 AM
Hello,
I want to hide a module 'Custom Assets' when the current logged in user is not a manager. Is there any way of scripting this?
I tried writing a Before query business rule on the modules table to list all modules except Custom Assets but it hides only in the modules list and not in the navigation pane.
Following a community post, created a dummy module and tried hiding Custom Assets using HTML from arguments, that didn't work either.
Any help?
Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2016 06:48 AM
Modules are controlled by roles. The way to do this is to assign a role to the managers and apply that role to the module.
Administering Application Menus and Modules - ServiceNow Wiki

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2016 06:57 AM
Hey Chuck,
Is there any way of scripting this or is giving a role the only way to go ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2016 07:02 AM
Roles is what grant access to a module/application in the menu so you have to do it by roles.
Why would you want to script it?
You can always make a script that gives managers role xyz if they are listed as manager, and same script can remove the role if they aren't manager anymore.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2016 06:52 AM
Hi,
You can edit the module and mention what roles is required in order to access the module.
Thanks and Hope it helps.