Ismemberof is not working in scoped app

knopbrent
Tera Contributor

Hi Community

 

A field should be editable to the members of the Assignment group(assignment group backend value = network_security_group) . I wrote the below mentioned code on a Field level Write ACL but it is not working. Can you please take a look and let me  know where am I going wrong ?

 

The first 2 conditions are working but the 3rd condition for "ismemberof" is not working. 

Quick question - "ismemberof" doesnot work in scoped app ??

 

if (gs.hasRole('x_cld_fsg.FSG_CLD_SECURITY') || current.network_iga_contact == gs.getUserID() || gs.getUser().isMemberOf(current.network_security_group.getDisplayName().toString())) {

    answer = true;
} else {
    answer = false;
}

 

Thanks in advance

10 REPLIES 10

Meghna_S
Tera Contributor

Any Solution to this question? Its not working for me also in scoped app. @Ankur Bawiskar @knopbrent