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

i have not assigned the ticket to Messaging queue and Still mailbox tab is coming 

 

find_real_file.png

Mohit Kaushik
Mega Sage
Mega Sage

Hi Abhishek,

You can try the below code in the condition field of your UI action.

current.subcategory=='mailbox_update'&&current.assignment_group='sys_id of the assignment group'

 

If you don't want to place the sys_id of asignment group then you can try to create a system property and save the sys_id of that group there and then call the system property in your condition filter in place of sys_id by using below code:

current.subcategory=='mailbox_update'&&current.assignment_group=gs.getProperty('name of the system property');

 

 

Please mark this as correct and helpful if it resolved the query or lead you in right direction.

Thanks,
Mohit Kaushik
Community Rising Star 2022

Thanks,
Mohit Kaushik
ServiceNow MVP (2023-2025)

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