Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to hide application menu and sub modules for admin role user??

gokulraj
Giga Expert

Hi All,

   I have a requirement to set the module visibility to certain role user(e.g role name is:"canread").If the user doesn't have that role then the module and sub modules should be hidden.

I have created new Application called Change and created new model called All and provided my role.

And it's working fine, But the problem is users with Admin role can see 2 Application 

One is, OOB Change Application

Other one is the custom one

How to hide the custom one from Admin Users.

Kindly share your ideas.

 

find_real_file.png

 

Thanks in advance,

Gokulraj

3 REPLIES 3

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

 

Go to application menu > Open the module > in roles give role which you want then to visible to.


Thanks,

Ashutosh Munot

gokulraj
Giga Expert

Hi 

 

I have tried that but still admin user's were able to see that.

 

find_real_file.png

Hi,

I am so sorry.

 

As far as i know Admin is a super role and he will see everthing.


Thanks,
Ashutosh Munot