Logged in user groups need to be show on my catalog item.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2025 08:20 AM
Hi Experts
I have catalog item "Access device tool" where I have the variable "requested for" (Read Only) it shows the current logged in user. Based on the current logged in user I want to shows the respective groups on the groups variables on the same catalog item.
Example : Logged in user is able tutor. He is part of 4 groups. That 4 groups only need to shows on the groups variable.
Note : Note required on change client script request because when I open the catalog item its show automatically groups respective logged in user.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2025 08:47 AM
so you can apply this advanced ref qualifier and it will work whenever Requested for is changed
Also since that Requested for is readonly will user be changing the variable value?
Add this in advanced reference qualifier on Group reference variable and it will show those groups to which logged in user belongs
javascript:'sys_idIN' + new global.ArrayUtil().convertArray(gs.getUser().getMyGroups());
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2025 06:33 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2025 07:41 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader