how to make an option in sp header menu visible to the people having certain role in servicenow portal

Gaddam Sai Srut
Tera Contributor

there is an option on the top of service portal header menu. That option should be visible only to the members of certain group. can anyone guide me with this issue?

1 ACCEPTED SOLUTION

Saurav11
Kilo Patron
Kilo Patron

Hello,

You need to go to the menu item which you want to hide

There you have the condition option you can write the below code there

 gs.getUser().isMemberOf('assignemntgroupname')

find_real_file.png

Please mark answer correct/helpful based on Impact

View solution in original post

1 REPLY 1

Saurav11
Kilo Patron
Kilo Patron

Hello,

You need to go to the menu item which you want to hide

There you have the condition option you can write the below code there

 gs.getUser().isMemberOf('assignemntgroupname')

find_real_file.png

Please mark answer correct/helpful based on Impact