gs.getUser.isMemberOf is not working in scoped application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2022 12:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2022 12:34 AM
Good day,
Please refere below syntax:
gs.getUser().isMemberOf('abc_groupname');
or
gs.getUser().isMemberOf('refernce field name').getDisplayValue(); - you can use this syntax in UI actions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2022 12:40 AM
Hi,
share your complete script for IF here
you are using it in wrong manner
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2022 12:41 AM
Can you try this way?
gs.getUser().isMemberOf(current.assignment_group.getDisplayValue())
Please mark helpful/correct if it helped resolve your query.
Thanks,
Saji

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2022 12:44 AM
Hello,
Getdisplayvalue is not required if you are directly passing name of the group simply remove that and it should work. Mark my answer as correct if that helps
gs.getUserID().isMemberof('Name of group');
Regards
Regards,
Musab