How to check logined user is part of a group without using script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 10:51 PM
Hi ,I have a required to check in ACL whether the logined in user is part of a group but without using script can i achive this ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 10:54 PM
You can do something like this:
gs.getUser().isMemberOf("Name_of_assignment_group")
If my answer solved your issue, please mark my answer as ✅ Correct & 👍Helpful based on the Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 11:00 PM
Not sure whether you would be able to achieve it without script. You can use following in script condition.
return gs.getUser().isMemberOf("Name_of_assignment_group");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 11:03 PM
Nope, you would require a script to evaluate your scenario. Two things here, since you want to need to check for a particular group if logged in user is a member of or not use below:
if(gs.getUser().isMemberOf("Group Name to evaluate")){
answer=true;
}else{
answer=false;
}
If in case you do not need to check for a particular group then you can use filter condition as well as mentioned below:
Assignment Group is OneofDynamic One of my groups
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 11:20 PM
If your issue is resolved, please select a appropriate answer as correct and close this thread. Else do post your follow up question for folks to guide you further
Regards,
Shloke