How to check logined user is part of a group without using script

avinashdubey103
Tera Guru

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 ?

4 REPLIES 4

Prince Arora
Tera Sage
Tera Sage

@avinashdubey103 

 

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.

Roshan Tiwari
Tera Guru

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");

shloke04
Kilo Patron

Hi @avinashdubey103 

 

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

 

shloke04_0-1701068622075.png

 

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hi @avinashdubey103 

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

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke