How would I limit a UI action to a certain group

Abhishek64
Kilo Contributor

How would I limit a UI action to a certain group?

We have a group in ServiceNow and want UI action tabs should be visible for these groups members only and below condition already in placed. Now want to add one more condition for limit the access to one group only.

please help me on it. (both condition should be work)

 

current.subcategory=='mailbox_update'

1 ACCEPTED SOLUTION

Imran Ahmad1
Kilo Guru

Hii Abhishek,

I have a suggestion, no need to add the condition just create a new role and assigned the to that groups you wants to give the permission and just specify the role in the UI Action you will get your requirement for sure, its easy and reliable.

 

Regards,

Imran Ahmad

 

Please mark helpful below

 

View solution in original post

12 REPLIES 12

Nagesh5
Tera Contributor

Hello Abhishek use below condition current.subcategory=='mailbox_update'&& gs.getUser().isMemberOf('SN_IT Managers')

 

Please change group name as per your requirement

 

Mark Correct if it's helpful

 

Thanks,

Nagesh

My group name is Messaging and below filter is not working 

gs.getUser().isMemberOf('Messaging')

Can you check this 

(current.subcategory == 'mailbox_update') && gs.getUser().isMemberOf('Messaging')

if it doesnt work, try this

(current.subcategory == 'mailbox_update') && gs.getUser().isMemberOf('Sys ID of the group')

Both filter not working