- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 01:26 PM - edited 03-27-2024 02:04 PM
This is for Utah release (I have an all config version in Washington DC that works fine).
I have tried the following four ways
var user = gs.getUser();
answer = user.isMemberOf('IhaveTriedGroupSysID&GroupNameHere');
answer = gs.getUser().isMemberOf('IhaveTriedGroupSysID&GroupNameHere');
gs.getUser().getUserByID(current.user).isMemberOf('IhaveTriedGroupSysID&GroupNameHere');
//I have tried with and without wrapping sys_id or group name in quotes
if(gs.getUser().isMemberOf('MyGroupName')) {answer = true;} else { answer = false;}Any ideas?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 03:01 PM
Hey @Lon Landry4,
The first option should work for both cases - using the group name or its sys_id
e.g.
var user = gs.getUser();
answer = user.isMemberOf('cfcbad03d711110050f5edcb9e61038f');
answer = user.isMemberOf('Team Development Code Reviewers'); //both works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 03:01 PM
Hey @Lon Landry4,
The first option should work for both cases - using the group name or its sys_id
e.g.
var user = gs.getUser();
answer = user.isMemberOf('cfcbad03d711110050f5edcb9e61038f');
answer = user.isMemberOf('Team Development Code Reviewers'); //both works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 03:29 PM
Neither option above works. No messages whatsoever, even if I write in an gs.addInfoMessage(answer);
Security Attribute within your ACL Rocks!
But, this needs to go into a Utah instance...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 03:35 PM
Can you share a screenshot of the entire ACL and what you are trying to do with it?
Also, have you done some ACL debugging?