Show only some roles in "User Roles" field type

Vishwa Pandya19
Mega Sage

Hello,

 

On the Knowledge Article form we have a field called "Roles".

The field type is "User Roles" and shows as below.

VishwaPandya19_0-1716540939357.png

Instead of showing all the roles in the available list, I want to show only "itil", "itil_admin" and "admin".

I can't add ref qual to this and I don't want to give any default value as well.

How can i achieve this?

 

 

Thanks in Advance!

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@Vishwa Pandya19 

I think it comes from some UI macro

Did you check that?

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

Hey Ankur,

 

I could not find any related UI Macro.
Would you assist me with the related record?

 

Thanks!

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Vishwa Pandya19 

 

What is the use case to make changes? seems it is come from UI macro.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hey,

 

The use case is that the knowledge articles are sitting under a knowledge base that will only be visible to "itil", "itil_admin" and "admin".

Along with that some articles are related to only "admin" or only "itil" users.

 

So we are creating a custom field like "Roles", but we want only with these 3 roles in it.

And as mentioned above I can't find the related UI macro, so if you can assist me with the related record it would be great!

 

Thanks!