How do I make my filters not editable and removable for certain user's roles?

ChuanYanF
Tera Guru

Dear experts,

I would like to ask how do we make my customed filter conditions to be not editable or removable for certain users or roles? For example here, I want to make the opened by and the state here not editable or removable by my business users so they could not see the all risk events, what should I do?

ChuanYanF_0-1741067588628.png

 

2 ACCEPTED SOLUTIONS

PrashantLearnIT
Giga Sage

Hi @ChuanYanF 

 

Please use sysparm_fixed_query for this fulfillment

********************************************************************************************************
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.

********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect


Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************

View solution in original post

Ankur Bawiskar
Tera Patron
Tera Patron

@ChuanYanF 

why not use sysparm_fixed_query as URL arguments from module, with this they cannot click All

Restrict filters and breadcrumbs with fixed queries 

you will see lot of OOB modules for this

Copy your query and give it after this


   &sysparm_fixed_query=YOUR QUERY
  

AnkurBawiskar_0-1741071204073.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

View solution in original post

2 REPLIES 2

PrashantLearnIT
Giga Sage

Hi @ChuanYanF 

 

Please use sysparm_fixed_query for this fulfillment

********************************************************************************************************
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.

********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect


Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************

Ankur Bawiskar
Tera Patron
Tera Patron

@ChuanYanF 

why not use sysparm_fixed_query as URL arguments from module, with this they cannot click All

Restrict filters and breadcrumbs with fixed queries 

you will see lot of OOB modules for this

Copy your query and give it after this


   &sysparm_fixed_query=YOUR QUERY
  

AnkurBawiskar_0-1741071204073.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