- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-02-2022 02:44 AM
Hi,
I've a requirement to check if the loggedin user is member or manager for a group or not. For this is used gs.getUserId().isMemberOf('my group') method. Its working for the group members. But when manager logs in its not working. But I read somewhere in community that this method works for managers too. Is it right? Or Are there any further things I should do?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-02-2022 03:15 AM
Hi,
the issue is coming because Luke Wilson who is group manager is not group member
In that case you need to query Group table and get manager and then check in sys_user_grmember table if that user is member or not
There is no direct way for this
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
ā03-02-2022 02:46 AM
Hi
Please share your script here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-02-2022 02:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-02-2022 02:51 AM
is this a scope application? It doesnot work in SCOPED APPLICATION
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-02-2022 02:53 AM
Hi Avinash,
I'm using this function in ACL. And currently I'm working globally