Restricting group visibility in ServiceNow

MariaVitorS
Tera Contributor

Hi guys, what's up?

I'd like to ask a question: in ServiceNow, is it possible to configure that certain groups are not visible to specific users?
For example, in a reference field in the groups table, would it be possible to make certain groups not appear as an option for user X?

Thanks in advance for your help!

1 ACCEPTED SOLUTION

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @MariaVitorS 

 

yes 100% possible. You can do it via ACL or BR .

 

https://www.servicenow.com/community/developer-forum/limit-visibility-of-assignment-groups-to-see-on...

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0790987

*************************************************************************************************************
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]

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

View solution in original post

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @MariaVitorS 

 

yes 100% possible. You can do it via ACL or BR .

 

https://www.servicenow.com/community/developer-forum/limit-visibility-of-assignment-groups-to-see-on...

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0790987

*************************************************************************************************************
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]

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

Ankur Bawiskar
Tera Patron
Tera Patron

@MariaVitorS 

Since you want to filter the data, you can use advanced reference qualifier for this in the group reference field

Something like this will work

Ensure you give user sysId, group name

javascript: var query = '';
if (gs.getUserID() == 'userXSysId') // give that user sysId here
    query = 'name!=Group ABC,Group DEF'; // if logged in user is X then hide these groups
query;

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