- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 09:42 PM - edited 01-22-2024 09:50 PM
Hello,
How to add the current user's(request for) groups and roles on the related list of the RITM form of my User Offboarding Catalog item.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 09:47 PM
Hi,
Can you please share what is business use case behind this?
As Requested Item table is used for many catalog items and it may be irrelevant to show users group and roles in all RITMs related list.
Thanks
Anil Lande

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 09:47 PM
Hi,
Can you please share what is business use case behind this?
As Requested Item table is used for many catalog items and it may be irrelevant to show users group and roles in all RITMs related list.
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 09:49 PM
Hello @Anil Lande
Forgot to mention i want to put this on my User Offboarding catalog item.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 10:45 PM
Hi,
You can create custom Relationships like below:
For Roles:
For groups:
To learn more check below links:
Thanks
Anil Lande

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 10:52 PM
Once you add custom related list on Requested Item form then you need to create one OnLoad client script that will Hide these lists on other requested Items.
https://www.servicenow.com/community/spm-forum/how-do-i-hide-a-related-list-on-load/m-p/1039606
You Logic in client script would be:
if(g_form.getValue('cat_item') != 'sys_id of Onboarding catalog item'){
g_form.hideRelatedList('REL:453086932f7fb950ae17debcf699b661'); // find the name or sys_id or related list
}
Find name of Related list :
by checking <sys_ui_related_list> table records.
Thanks
Anil Lande