get list of groups user belongs to
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2017 11:17 AM
we have created a new custom table with name u_work_group
in which it is having list of 50+ groups, and now we got a requirement that
create a field which refers to sys_user table
and when user is selected then ln a text box to be shown with list of groups that user is member of
agent - type is reference - points to sys_user
groups - type is text box - get group of user
(groups to be separated with comma [,])
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2017 11:26 AM
Try using gs.getUser().getMyGroups to get all the groups the logged in user belongs to..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-15-2018 04:28 AM
this give me sys id how convert to name
i tried getDisplayValue() and Value but not works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2022 06:31 PM
Where we need to write this script?
Business rules??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2024 09:14 AM
gs.getUser().getMyGroups();