How i can show the interaction module on service operation workspace only to particular group users

Debasis Pati
Tera Guru

Hello All,
I want to show the interactions module present in the service operation workspace only to particluar group>

DebasisPati_0-1757656940305.png

DebasisPati_1-1757656968054.png

also the new interaction i want to show it to the same group users only.

How i can achieve it?


 

1 ACCEPTED SOLUTION

@Debasis Pati 

that's correct.

If you keep roles in your audience then that takes precedence and hence to clear that.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

11 REPLIES 11

Ankur Bawiskar
Tera Patron
Tera Patron

@Debasis Pati 

2 things

New Interaction

1) ensure table.CREATE ACL for interaction table is allowing only that group members

a) create that group, create some role and associate it with this group

b) add this role to the table.CREATE ACL

c) if logged in user is not member of that group and ACL fails then that "New Interaction" won't be shown

OR

Another method

SOW workspace configure chrome_tab create major incident 

1) go to this UX Page Property record

https://instanceName.service-now.com/nav_to.do?uri=sys_ux_page_property.do?sys_id=df0c9cb97340301045216238edf6a785

2) update the JSON as this and I added the extra role check and give your custom role

{
"contextual": [
"record",
"kb_view"
],
"newTabMenu": [
{
"label": {
"translatable": true,
"message": "New Interaction"
},
"routeInfo": {
"route": "record",
"fields": {
"table": "interaction",
"sysId": "-1"
},
"multiInstField": "sysId"
},
"condition": {
"tableDescription": {
"table": "interaction",
"canCreate": true
}
},
"roles": [
"yourRole"
]
},
{
"label": {
"translatable": true,
"message": "New Incident"
},
"routeInfo": {
"route": "record",
"fields": {
"table": "incident",
"sysId": "-1"
},
"multiInstField": "sysId"
},
"condition": {
"tableDescription": {
"table": "incident",
"canCreate": true
},
"roles": [
"sn_incident_write",
"itil"
]
}
},
{
"label": {
"translatable": true,
"message": "New Change Request"
},
"routeInfo": {
"route": "create-change-request-page",
"fields": {},
"multiInstField": ""
},
"condition": {
"tableDescription": {
"table": "change_request",
"canCreate": true
}
}
},
{
"label": {
"translatable": true,
"message": "New Problem"
},
"routeInfo": {
"route": "record",
"fields": {
"table": "problem",
"sysId": "-1"
},
"multiInstField": ""
},
"condition": {
"tableDescription": {
"table": "problem",
"canCreate": true
}
}
}
],
"maxMainTabLimit": 10,
"maxTotalSubTabLimit": 30
}

Left Module for Interactions

1) update the OOTB audience and add that group role there and remove the existing one

https://instanceName.service-now.com/sys_ux_applicability_m2m_list_list.do?sysparm_query=list.category.titleSTARTSWITHInteractions%5Esys_scope%3D47b2ca6053983010ff67ddeeff7b12bd&sysparm_view=

AnkurBawiskar_0-1757657828239.png

2) open that Audience (Applicability record) and add your role

AnkurBawiskar_1-1757657870847.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hey @Ankur Bawiskar ,

thanks for your reply but i do not want to control through roles otherwise direclty in audiences i can add the role i want it to work the way it shows on top of that i want if the user is part of the particular group they only can see it in the service operation workspace interaction agent role shows it to all users who have the role that's fine on top of it if the user is part of x group then only they should be able to see the module this i want.

@Debasis Pati 

audience can be controller via Group using User Criteria and then role not required for that group

But that Chrome tab cannot handle scripting.

If you don't want custom role for that group then why not create new Table.CREATE ACL and use advanced script and check if logged in user is member of that group

If yes then that New Interaction will be seen, if not then it will be hidden

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar ,
Coming to the module show up first irrespective of role if the user is part of that group they will be able to see the module (Note they will be itil only so they are able to open the workspace)>
along with "itil" they have the interaction role but on top of that i want to show this module only to the users who are part of the group.
The  second phase of this requirement is to control the create new interaction.
I hope i am able to explain what i need 
I guess we can achieve it through creating a user criteria and adding audience but i am not sure about it very new to ui builder.

Regards,
Debasis